public function testCanRemoveBookFromList()
 {
     $book = new Book('Clean Code', 'Robert C. Martin');
     $bookList = new BookList();
     $bookList->addBook($book);
     $bookList->removeBook($book);
     $this->assertCount(0, $bookList);
 }
예제 #2
0
 /**
  * Test BookList Remove
  */
 public function testBookRemove()
 {
     $this->bookList->removeBook($this->bookList->getBook(0));
     $this->assertEquals($this->bookList->count(), 2);
 }