/** * Make sure we can set an array of string cookies * */ public function testSetCookieStringArray() { $this->client->setUri($this->baseuri . 'testCookies.php'); $cookies = array('chocolate' => 'chips', 'crumble' => 'apple', 'another' => 'cookie'); $this->client->setCookies($cookies); $res = $this->client->send(); $this->assertEquals($res->getBody(), serialize($cookies), 'Response body does not contain the expected cookies'); }