protected function setUp()
 {
     $this->bookList = new BookList();
     $this->bookList->addBook(new Book('Learning PHP Design Patterns', 'William Sanders'));
     $this->bookList->addBook(new Book('Professional Php Design Patterns', 'Aaron Saray'));
     $this->bookList->addBook(new Book('Clean Code', 'Robert C. Martin'));
 }
 public function testCanRemoveBookFromList()
 {
     $book = new Book('Clean Code', 'Robert C. Martin');
     $bookList = new BookList();
     $bookList->addBook($book);
     $bookList->removeBook($book);
     $this->assertCount(0, $bookList);
 }
 /**
  * Test BookList Remove
  */
 public function testBookRemove()
 {
     $this->bookList->removeBook($this->bookList->getBook(0));
     $this->assertEquals($this->bookList->count(), 2);
 }