function test_setLocation() { //Arrange $name = "Paddys"; $location = "462 Over There Way"; $link = "www.paddyspub.com"; $test_pub = new Pub($name, $location, $link); $new_location = "234 Get There Place"; //Act $test_pub->setLocation($new_location); $result = $test_pub->getLocation(); //Assert $this->assertEquals($new_location, $result); }