Example #1
0
 /**
  * Test we can unset a cookie jar
  *
  */
 public function testUnsetCookies()
 {
     // Set the cookie jar just like in testSetNewCookieJar
     $this->_client->addCookie('cookie', 'value');
     $this->_client->addCookie('chocolate', 'chips');
     $cookies = $this->_client->getCookies();
     // Try unsetting the cookies
     $this->_client->clearCookies();
     $cookies = $this->_client->getCookies();
     $this->assertTrue(empty($cookies), 'Cookies is expected to be null but it is not');
 }