Permalink
Browse files

Removed all requires and added the autoload definition to composer.

  • Loading branch information...
1 parent c2b06f9 commit 2a8258728b8dd710b8807e63a26307505c2a9442 @Dynom Dynom committed May 18, 2013
View
@@ -13,7 +13,10 @@
"php": ">=5.3.3"
},
"autoload": {
- "psr-0": { "Faker": "src/" }
+ "psr-0": {
+ "Faker": "src/",
+ "Faker\\PHPUnit": "test/"
+ }
},
"extra": {
"branch-alias": {
View
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<phpunit bootstrap="src/autoload.php">
+<phpunit bootstrap="vendor/autoload.php">
<testsuites>
<testsuite name="Faker Test Suite">
<directory>./test/Faker/</directory>
@@ -2,8 +2,6 @@
namespace Faker\Provider\bg_BG;
-require_once __DIR__ . '/../Person.php';
-
class Person extends \Faker\Provider\Person
{
protected static $formats = array(
@@ -2,8 +2,6 @@
namespace Faker\Provider\it_IT;
-require_once __DIR__ . '/../Address.php';
-
class Address extends \Faker\Provider\Address
{
protected static $cityPrefix = array('San', 'Borgo', 'Sesto', 'Quarto', 'Settimo');
@@ -2,8 +2,6 @@
namespace Faker\Provider\it_IT;
-require_once __DIR__ . '/../Company.php';
-
class Company extends \Faker\Provider\Company
{
protected static $formats = array(
@@ -2,8 +2,6 @@
namespace Faker\Provider\it_IT;
-require_once __DIR__ . '/../Person.php';
-
class Person extends \Faker\Provider\Person
{
protected static $formats = array(
@@ -2,8 +2,6 @@
namespace Faker\Provider\it_IT;
-require_once __DIR__ . '/../PhoneNumber.php';
-
class PhoneNumber extends \Faker\Provider\PhoneNumber
{
protected static $formats = array(
@@ -5,10 +5,6 @@
use Faker\Provider\fr_FR\Company;
use Faker\PHPUnit\Framework\Constraint as Constraint;
-require_once __DIR__ . '/../../PHPUnit/Framework/Constraint/IsValidSirenSiret.php';
-require_once __DIR__ . '/../../PHPUnit/Framework/Constraint/IsValidSiret.php';
-require_once __DIR__ . '/../../PHPUnit/Framework/Constraint/IsValidSiren.php';
-
class CompanyTest extends \PHPUnit_Framework_TestCase
{
private static function isValidSiret()
View
@@ -1,5 +1,5 @@
<?php
-require_once __DIR__ . '/../src/autoload.php';
+require_once __DIR__ . '/../vendor/autoload.php';
$generator = Faker\Factory::create();
$generator->seed(1);
View
@@ -1,5 +1,5 @@
<?php
-require_once __DIR__ . '/../src/autoload.php';
+require __DIR__ .'/../vendor/autoload.php';
$faker = Faker\Factory::create();
$faker->seed(5);

0 comments on commit 2a82587

Please sign in to comment.