1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-04-13 20:11:57 +02:00

Removed all requires and added the autoload definition to composer.

This commit is contained in:
Mark van der Velden 2013-05-18 16:53:58 +02:00
parent c2b06f9741
commit 2a8258728b
10 changed files with 7 additions and 18 deletions

View File

@ -13,7 +13,10 @@
"php": ">=5.3.3"
},
"autoload": {
"psr-0": { "Faker": "src/" }
"psr-0": {
"Faker": "src/",
"Faker\\PHPUnit": "test/"
}
},
"extra": {
"branch-alias": {

View File

@ -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 File

@ -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 File

@ -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 File

@ -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 File

@ -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 File

@ -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 File

@ -5,10 +5,6 @@ namespace Faker\Test\Provider\fr_FR;
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 File

@ -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 File

@ -1,5 +1,5 @@
<?php
require_once __DIR__ . '/../src/autoload.php';
require __DIR__ .'/../vendor/autoload.php';
$faker = Faker\Factory::create();
$faker->seed(5);