1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-03-22 16:29:55 +01:00

Merge pull request #133 from Dynom/changingAutoloaderToComposer

Removed all requires and added the autoload definition to composer.
This commit is contained in:
Francois Zaninotto 2013-05-19 23:47:30 -07:00
commit 9dcef6d70d
11 changed files with 9 additions and 18 deletions

View File

@ -1,3 +1,5 @@
language: php
php: 5.3
before_script:
- composer install --dev
script: phpunit

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);