123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace Faker\Test\Provider\uk_UA;
- use Faker\Generator;
- use Faker\Provider\uk_UA\Person;
- class PersonTest extends \PHPUnit_Framework_TestCase
- {
- public function testFirstNameMaleReturns()
- {
- $faker = new Generator();
- $faker->addProvider(new Person($faker));
- $faker->seed(1);
- $this->assertEquals('Максим', $faker->firstNameMale());
- }
- public function testFirstNameFemaleReturns()
- {
- $faker = new Generator();
- $faker->addProvider(new Person($faker));
- $faker->seed(1);
- $this->assertEquals('Людмила', $faker->firstNameFemale());
- }
- public function testMiddleNameMaleReturns()
- {
- $faker = new Generator();
- $faker->addProvider(new Person($faker));
- $faker->seed(1);
- $this->assertEquals('Миколайович', $faker->middleNameMale());
- }
- public function testMiddleNameFemaleReturns()
- {
- $faker = new Generator();
- $faker->addProvider(new Person($faker));
- $faker->seed(1);
- $this->assertEquals('Миколаївна', $faker->middleNameFemale());
- }
- public function testLastNameReturns()
- {
- $faker = new Generator();
- $faker->addProvider(new Person($faker));
- $faker->seed(1);
- $this->assertEquals('Броваренко', $faker->lastName());
- }
- }
|