function test_setLink() { //Arrange $name = "Paddys"; $location = "462 Over There Way"; $link = "www.paddyspub.com"; $test_pub = new Pub($name, $location, $link); $new_link = "www.thebar.com"; //Act $test_pub->setLink($new_link); $result = $test_pub->getLink(); //Assert $this->assertEquals($new_link, $result); }