コード例 #1
0
 public function testFavoritedCount()
 {
     $favs = 7295;
     $anime = new Anime();
     $anime->setFavoritedCount($favs);
     $this->assertEquals($favs, $anime->getFavoritedCount());
     //Try inserting bad data
     //        $favs = 'Fake';
     //
     //        $anime->setFavoritedCount($favs);
     //
     //        $this->assertEquals((int) $favs, $anime->getFavoritedCount());
 }