/** * Make sure using an invalid cookie jar object throws an exception * */ public function testSetInvalidCookies() { $this->setExpectedException('Zend\\Http\\Exception\\InvalidArgumentException', 'Invalid parameter type passed as Cookie'); $this->_client->addCookie('cookie'); }