12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace Faker\Test\Provider\ja_JP;
- use Faker\Generator;
- use Faker\Provider\ja_JP\Person;
- class PersonTest extends \PHPUnit_Framework_TestCase
- {
- public function testKanaNameMaleReturns()
- {
- $faker = new Generator();
- $faker->addProvider(new Person($faker));
- $faker->seed(1);
- $this->assertEquals('アオタ ミノル', $faker->kanaName('male'));
- }
- public function testKanaNameFemaleReturns()
- {
- $faker = new Generator();
- $faker->addProvider(new Person($faker));
- $faker->seed(1);
- $this->assertEquals('アオタ ミキ', $faker->kanaName('female'));
- }
- public function testFirstKanaNameMaleReturns()
- {
- $faker = new Generator();
- $faker->addProvider(new Person($faker));
- $faker->seed(1);
- $this->assertEquals('ヒデキ', $faker->firstKanaName('male'));
- }
- public function testFirstKanaNameFemaleReturns()
- {
- $faker = new Generator();
- $faker->addProvider(new Person($faker));
- $faker->seed(1);
- $this->assertEquals('マアヤ', $faker->firstKanaName('female'));
- }
- public function testLastKanaNameReturnsNakajima()
- {
- $faker = new Generator();
- $faker->addProvider(new Person($faker));
- $faker->seed(1);
- $this->assertEquals('ナカジマ', $faker->lastKanaName);
- }
- }
|