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:
commit
9dcef6d70d
@ -1,3 +1,5 @@
|
||||
language: php
|
||||
php: 5.3
|
||||
before_script:
|
||||
- composer install --dev
|
||||
script: phpunit
|
||||
|
@ -13,7 +13,10 @@
|
||||
"php": ">=5.3.3"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-0": { "Faker": "src/" }
|
||||
"psr-0": {
|
||||
"Faker": "src/",
|
||||
"Faker\\PHPUnit": "test/"
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
|
@ -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 @@ 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()
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/../src/autoload.php';
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
$generator = Faker\Factory::create();
|
||||
$generator->seed(1);
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/../src/autoload.php';
|
||||
require __DIR__ .'/../vendor/autoload.php';
|
||||
|
||||
$faker = Faker\Factory::create();
|
||||
$faker->seed(5);
|
||||
|
Loading…
x
Reference in New Issue
Block a user