Example #1
0
 /**
  * @param string $title
  * @param string $author
  * @param string $isbn
  * @param string $price
  * @dataProvider providerBookData
  */
 public function testGetBookReturnsExpectedBookObject($title, $author, $isbn, $price)
 {
     $book = new Book();
     $book->setTitle($title)->setAuthor($author)->setIsbn($isbn)->setPrice($price);
     $this->assertEquals($book->getTitle(), $title);
     $this->assertEquals($book->getAuthor(), $author);
     $this->assertEquals($book->getISBN(), $isbn);
     $this->assertEquals($book->getPrice(), $price);
 }