function test_getDescription() { //Arrange $name = "Billy Body-Bags"; $stylist_id = 1; $id = 1; $visits = 3; $description = "Make me party"; $test_Clients = new Client($name, $stylist_id, $id, $visits, $description); //Act $result = $test_Clients->getDescription(); //Assert $this->assertEquals($description, $result); }
public function addClient(Client $client) { return $this->storage->execute('INSERT INTO client(id,secret,name,redirect_url,user_id,description) VALUES ("' . $client->getId() . '" , "' . $client->getSecret() . '" ,"' . $client->getName() . '" ,"' . $client->getRedirectUrl() . '" ,"' . $client->getUserId() . '","' . $client->getDescription() . '")'); }