mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-25 20:29:10 -04:00
Include Vendor
This commit is contained in:
52
vendor/fzaninotto/faker/test/Faker/Provider/en_UG/AddressTest.php
vendored
Normal file
52
vendor/fzaninotto/faker/test/Faker/Provider/en_UG/AddressTest.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Faker\Test\Provider\en_UG;
|
||||
|
||||
use Faker\Generator;
|
||||
use Faker\Provider\en_UG\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;
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
public function testCityName()
|
||||
{
|
||||
$city = $this->faker->cityName();
|
||||
$this->assertNotEmpty($city);
|
||||
$this->assertInternalType('string', $city);
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
public function testDistrict()
|
||||
{
|
||||
$district = $this->faker->district();
|
||||
$this->assertNotEmpty($district);
|
||||
$this->assertInternalType('string', $district);
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
public function testRegion()
|
||||
{
|
||||
$region = $this->faker->region();
|
||||
$this->assertNotEmpty($region);
|
||||
$this->assertInternaltype('string', $region);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user