New tests.

这个提交包含在:
Sébastien Lucas 2014-06-04 21:37:32 +02:00
父节点 d38486cd09
当前提交 e38ac8ea65
共有 1 个文件被更改,包括 7 次插入0 次删除

查看文件

@ -191,6 +191,13 @@ class BookTest extends PHPUnit_Framework_TestCase
$this->assertEquals ("Strand Magazine", $book->getPublisher()->name);
}
public function testGetBookById_NotFound ()
{
$book = Book::getBookById(666);
$this->assertNull ($book);
}
public function testGetRating_FiveStars ()
{
$book = Book::getBookById(2);