mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-25 12:19:11 -04:00
Include Vendor
This commit is contained in:
23
vendor/fzaninotto/faker/test/Faker/Provider/it_IT/CompanyTest.php
vendored
Normal file
23
vendor/fzaninotto/faker/test/Faker/Provider/it_IT/CompanyTest.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Faker\Test\Provider\it_IT;
|
||||
|
||||
use Faker\Generator;
|
||||
use Faker\Provider\it_IT\Company;
|
||||
|
||||
class CompanyTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function setUp()
|
||||
{
|
||||
$faker = new Generator();
|
||||
$faker->addProvider(new Company($faker));
|
||||
$this->faker = $faker;
|
||||
}
|
||||
|
||||
public function testIfTaxIdCanReturnData()
|
||||
{
|
||||
$vatId = $this->faker->vatId();
|
||||
$this->assertRegExp('/^IT[0-9]{11}$/', $vatId);
|
||||
}
|
||||
|
||||
}
|
||||
23
vendor/fzaninotto/faker/test/Faker/Provider/it_IT/PersonTest.php
vendored
Normal file
23
vendor/fzaninotto/faker/test/Faker/Provider/it_IT/PersonTest.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Faker\Test\Provider\it_IT;
|
||||
|
||||
use Faker\Generator;
|
||||
use Faker\Provider\it_IT\Person;
|
||||
|
||||
class PersonTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function setUp()
|
||||
{
|
||||
$faker = new Generator();
|
||||
$faker->addProvider(new Person($faker));
|
||||
$this->faker = $faker;
|
||||
}
|
||||
|
||||
public function testIfTaxIdCanReturnData()
|
||||
{
|
||||
$taxId = $this->faker->taxId();
|
||||
$this->assertRegExp('/^[a-zA-Z]{6}[0-9]{2}[a-zA-Z][0-9]{2}[a-zA-Z][0-9]{3}[a-zA-Z]$/', $taxId);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user