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:
31
vendor/fzaninotto/faker/test/Faker/Provider/pl_PL/AddressTest.php
vendored
Normal file
31
vendor/fzaninotto/faker/test/Faker/Provider/pl_PL/AddressTest.php
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace Faker\Provider\pl_PL;
|
||||
|
||||
use Faker\Generator;
|
||||
|
||||
class AddressTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* @var Generator
|
||||
*/
|
||||
private $faker;
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
$faker = new Generator();
|
||||
$faker->addProvider(new Address($faker));
|
||||
$this->faker = $faker;
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the validity of state
|
||||
*/
|
||||
public function testState()
|
||||
{
|
||||
$state = $this->faker->state();
|
||||
$this->assertNotEmpty($state);
|
||||
$this->assertInternalType('string', $state);
|
||||
$this->assertRegExp('/[a-z]+/', $state);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user