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); } }