Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #775 from Newman101/en_UG_unit_test
Browse files Browse the repository at this point in the history
Added unit test folder for en_UG provider and AddressTest.php
  • Loading branch information
fzaninotto committed Feb 23, 2016
2 parents d9387d3 + a488bac commit a38026b
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions test/Faker/Provider/en_UG/AddressTest.php
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit a38026b

Please sign in to comment.