function testSetAuthorName() { $author_name = "Murakami"; $test_author = new Author($author_name); $test_author->setAuthorName("Hemingway"); $result = $test_author->getAuthorName(); $this->assertEquals("Hemingway", $result); }
function testSetAuthorName() { //Arrange $author_name = "Neal Stephenson"; $test_author = new Author($author_name); //Act $test_author->setAuthorName("Frank Herbert"); $result = $test_author->getAuthorName(); //Assert $this->assertEquals("Frank Herbert", $result); }
function testSetAuthorName() { //Arrange $author_name = "J.K. Rowling"; $test_author = new Author($author_name); //Act $test_author->setAuthorName("John Steinbeck"); $result = $test_author->getAuthorName(); //Assert $this->assertEquals("John Steinbeck", $result); }
function test_author_setAuthorName() { //Arrange $author_name = "Whitman"; $test_author = new Author($author_name); //Act $test_author->setAuthorName("Walty"); $result = $test_author->getAuthorName(); //Assert $this->assertEquals("Walty", $result); }
function test_setAuthorName() { //Arrange $name = "Uncle Ben"; $id = 1; $test_author = new Author($name, $id); //Act $test_author->setAuthorName("Welcome to Puzzle Heaven"); $result = $test_author->getAuthorName(); //Assert $this->assertEquals($result, "Welcome to Puzzle Heaven"); }
function testSetAuthorName() { //Arrange $author_name = "Stephen King"; $id = 1; $test_author = new Author($author_name, $id); //Act $test_author->setAuthorName("Plato"); $result = $test_author->getAuthorName(); //Assert $this->assertEquals("Plato", $result); }