mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-26 04:39:09 -04:00
Include Vendor
This commit is contained in:
48
vendor/fzaninotto/faker/test/Faker/Provider/en_AU/AddressTest.php
vendored
Normal file
48
vendor/fzaninotto/faker/test/Faker/Provider/en_AU/AddressTest.php
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
namespace Faker\Provider\en_AU;
|
||||
|
||||
use Faker\Generator;
|
||||
use Faker\Provider\en_AU\Address;
|
||||
|
||||
class AddressTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* @var Faker\Generator
|
||||
*/
|
||||
private $faker;
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
$faker = new Generator();
|
||||
$faker->addProvider(new Address($faker));
|
||||
$this->faker = $faker;
|
||||
}
|
||||
|
||||
public function testCityPrefix()
|
||||
{
|
||||
$cityPrefix = $this->faker->cityPrefix();
|
||||
$this->assertNotEmpty($cityPrefix);
|
||||
$this->assertInternalType('string', $cityPrefix);
|
||||
$this->assertRegExp('/[A-Z][a-z]+/', $cityPrefix);
|
||||
}
|
||||
|
||||
public function testStreetSuffix()
|
||||
{
|
||||
$streetSuffix = $this->faker->streetSuffix();
|
||||
$this->assertNotEmpty($streetSuffix);
|
||||
$this->assertInternalType('string', $streetSuffix);
|
||||
$this->assertRegExp('/[A-Z][a-z]+/', $streetSuffix);
|
||||
}
|
||||
|
||||
public function testState()
|
||||
{
|
||||
$state = $this->faker->state();
|
||||
$this->assertNotEmpty($state);
|
||||
$this->assertInternalType('string', $state);
|
||||
$this->assertRegExp('/[A-Z][a-z]+/', $state);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user