Skip to content

Commit

Permalink
Removed require statements
Browse files Browse the repository at this point in the history
  • Loading branch information
yohang committed Oct 25, 2011
1 parent 4319b37 commit add655e
Show file tree
Hide file tree
Showing 23 changed files with 0 additions and 47 deletions.
2 changes: 0 additions & 2 deletions src/Faker/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Faker;

require_once __DIR__ . '/Generator.php';

class Factory
{
const DEFAULT_LOCALE = 'en_US';
Expand Down
3 changes: 0 additions & 3 deletions src/Faker/ORM/Propel/EntityPopulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

namespace Faker\ORM\Propel;

include __DIR__ . '/../../Guesser/Name.php';
include __DIR__ . '/ColumnTypeGuesser.php';

/**
* Service class for populating a table through a Propel ActiveRecord class.
*/
Expand Down
2 changes: 0 additions & 2 deletions src/Faker/ORM/Propel/Populator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Faker\ORM\Propel;

require_once __DIR__ . '/EntityPopulator.php';

/**
* Service class for populating a database using the Propel ORM.
* A Populator can populate several tables using ActiveRecord classes.
Expand Down
2 changes: 0 additions & 2 deletions src/Faker/Provider/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Faker\Provider;

require_once __DIR__ . '/Base.php';

class Address extends \Faker\Provider\Base
{
protected static $citySuffix = array('Ville');
Expand Down
2 changes: 0 additions & 2 deletions src/Faker/Provider/Company.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Faker\Provider;

require_once __DIR__ . '/Base.php';

class Company extends \Faker\Provider\Base
{
protected static $formats = array(
Expand Down
2 changes: 0 additions & 2 deletions src/Faker/Provider/DateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Faker\Provider;

require_once __DIR__ . '/Base.php';

class DateTime extends \Faker\Provider\Base
{
protected static $century = array('I','II','III','IV','V','VI','VII','VIII','IX','X','XI','XII','XIII','XIV','XV','XVI','XVII','XVIII','XIX','XX','XX1');
Expand Down
2 changes: 0 additions & 2 deletions src/Faker/Provider/Internet.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Faker\Provider;

require_once __DIR__ . '/Base.php';

class Internet extends \Faker\Provider\Base
{
protected static $safeEmailTld = array('org', 'com', 'net');
Expand Down
2 changes: 0 additions & 2 deletions src/Faker/Provider/Lorem.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Faker\Provider;

require_once __DIR__ . '/Base.php';

class Lorem extends \Faker\Provider\Base
{
protected static $wordList = array(
Expand Down
2 changes: 0 additions & 2 deletions src/Faker/Provider/Miscellaneous.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Faker\Provider;

require_once __DIR__ . '/Base.php';

class Miscellaneous extends \Faker\Provider\Base
{

Expand Down
2 changes: 0 additions & 2 deletions src/Faker/Provider/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Faker\Provider;

require_once __DIR__ . '/Base.php';

class Person extends \Faker\Provider\Base
{
protected static $formats = array(
Expand Down
2 changes: 0 additions & 2 deletions src/Faker/Provider/PhoneNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Faker\Provider;

require_once __DIR__ . '/Base.php';

class PhoneNumber extends \Faker\Provider\Base
{
protected static $formats = array('###-###-###');
Expand Down
2 changes: 0 additions & 2 deletions src/Faker/Provider/en_GB/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Faker\Provider\en_GB;

require_once __DIR__ . '/../Address.php';

class Address extends \Faker\Provider\Address
{
protected static $cityPrefix = array('North', 'East', 'West', 'South', 'New', 'Lake', 'Port');
Expand Down
2 changes: 0 additions & 2 deletions src/Faker/Provider/en_GB/Internet.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Faker\Provider\en_GB;

require_once __DIR__ . '/../Internet.php';

class Internet extends \Faker\Provider\Internet
{
protected static $safeEmailTld = array('org', 'com', 'net', 'co.uk');
Expand Down
2 changes: 0 additions & 2 deletions src/Faker/Provider/en_GB/PhoneNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Faker\Provider\en_GB;

require_once __DIR__ . '/../PhoneNumber.php';

class PhoneNumber extends \Faker\Provider\PhoneNumber
{
protected static $formats = array(
Expand Down
2 changes: 0 additions & 2 deletions src/Faker/Provider/en_US/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Faker\Provider\en_US;

require_once __DIR__ . '/../Address.php';

class Address extends \Faker\Provider\Address
{
protected static $cityPrefix = array('North', 'East', 'West', 'South', 'New', 'Lake', 'Port');
Expand Down
2 changes: 0 additions & 2 deletions src/Faker/Provider/en_US/Company.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Faker\Provider\en_US;

require_once __DIR__ . '/../Company.php';

class Company extends \Faker\Provider\Company
{
protected static $formats = array(
Expand Down
2 changes: 0 additions & 2 deletions src/Faker/Provider/en_US/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Faker\Provider\en_US;

require_once __DIR__ . '/../Person.php';

class Person extends \Faker\Provider\Person
{
protected static $formats = array(
Expand Down
2 changes: 0 additions & 2 deletions src/Faker/Provider/en_US/PhoneNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Faker\Provider\en_US;

require_once __DIR__ . '/../PhoneNumber.php';

class PhoneNumber extends \Faker\Provider\PhoneNumber
{
protected static $formats = array(
Expand Down
2 changes: 0 additions & 2 deletions src/Faker/Provider/fr_FR/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Faker\Provider\fr_FR;

require_once __DIR__ . '/../Person.php';

class Person extends \Faker\Provider\Person
{
protected static $formats = array(
Expand Down
2 changes: 0 additions & 2 deletions test/Faker/GeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Faker\Test;

require_once __DIR__ . '/../../src/Faker/Generator.php';

use Faker\Generator;

class GeneratorTest extends \PHPUnit_Framework_TestCase
Expand Down
2 changes: 0 additions & 2 deletions test/Faker/Provider/BaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Faker\Test\Provider;

require_once __DIR__ . '/../../../src/Faker/Provider/Base.php';

use Faker\Provider\Base as BaseProvider;

class BaseTest extends \PHPUnit_Framework_TestCase
Expand Down
3 changes: 0 additions & 3 deletions test/documentor.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<?php
require_once __DIR__ . '/../src/Faker/Factory.php';
require_once __DIR__ . '/../src/Faker/Documentor.php';

$generator = Faker\Factory::create();
$generator->seed(1);
$documentor = new Faker\Documentor($generator);
Expand Down
1 change: 0 additions & 1 deletion test/test.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
require_once __DIR__ . '/../src/Faker/Factory.php';
$generator = Faker\Factory::create();
$generator->seed(5);
?>
Expand Down

0 comments on commit add655e

Please sign in to comment.