/**
  * @When I try to create another book with the same ISBN number
  */
 public function iTryToCreateAnotherBookWithTheSameIsbnNumber()
 {
     $this->assertCurrentBookIsDefined();
     $this->currentBook = Book::withTitleAndIsbn(new BookTitle('Random Title'), $this->currentBook->isbn());
 }
 /**
  * @Given a book with ISBN :isbn and title :title was added to the library
  */
 public function aBookWithIsbnAndTitleWasAddedToTheCatalog($isbn, $title)
 {
     $this->library->add(Book::withTitleAndIsbn(new BookTitle($title), new Isbn($isbn)));
 }