Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed all requires and added the autoload definition to composer.

  • Loading branch information...
commit 2a8258728b8dd710b8807e63a26307505c2a9442 1 parent c2b06f9
@Dynom Dynom authored
View
5 composer.json
@@ -13,7 +13,10 @@
"php": ">=5.3.3"
},
"autoload": {
- "psr-0": { "Faker": "src/" }
+ "psr-0": {
+ "Faker": "src/",
+ "Faker\\PHPUnit": "test/"
+ }
},
"extra": {
"branch-alias": {
View
2  phpunit.xml.dist
@@ -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>
View
2  src/Faker/Provider/bg_BG/Person.php
@@ -2,8 +2,6 @@
namespace Faker\Provider\bg_BG;
-require_once __DIR__ . '/../Person.php';
-
class Person extends \Faker\Provider\Person
{
protected static $formats = array(
View
2  src/Faker/Provider/it_IT/Address.php
@@ -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');
View
2  src/Faker/Provider/it_IT/Company.php
@@ -2,8 +2,6 @@
namespace Faker\Provider\it_IT;
-require_once __DIR__ . '/../Company.php';
-
class Company extends \Faker\Provider\Company
{
protected static $formats = array(
View
2  src/Faker/Provider/it_IT/Person.php
@@ -2,8 +2,6 @@
namespace Faker\Provider\it_IT;
-require_once __DIR__ . '/../Person.php';
-
class Person extends \Faker\Provider\Person
{
protected static $formats = array(
View
2  src/Faker/Provider/it_IT/PhoneNumber.php
@@ -2,8 +2,6 @@
namespace Faker\Provider\it_IT;
-require_once __DIR__ . '/../PhoneNumber.php';
-
class PhoneNumber extends \Faker\Provider\PhoneNumber
{
protected static $formats = array(
View
4 test/Faker/Provider/fr_FR/CompanyTest.php
@@ -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
2  test/documentor.php
@@ -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
2  test/test.php
@@ -1,5 +1,5 @@
<?php
-require_once __DIR__ . '/../src/autoload.php';
+require __DIR__ .'/../vendor/autoload.php';
$faker = Faker\Factory::create();
$faker->seed(5);
Please sign in to comment.
Something went wrong with that request. Please try again.