示例#1
0
 public function testOtherTitles()
 {
     $manga = new Manga();
     $otherTitles = array();
     $otherTitles['english'][] = '5 Centimeters per Second';
     $otherTitles['synonyms'][] = 'Five Centimeters Per Second';
     $otherTitles['synonyms'][] = 'Byousoku 5 Centimeter - a chain of short stories about their distance';
     $otherTitles['synonyms'][] = '5 Centimetres Per Second';
     $otherTitles['synonyms'][] = '5 cm per second';
     $otherTitles['japanese'][] = '秒速5センチメートル';
     $manga->setOtherTitles($otherTitles);
     $this->assertEquals($otherTitles, $manga->getOtherTitles());
 }