Example #1
0
 /**
  *
  * @param type $cookie
  * @return type
  */
 public function _getCookie($cookie)
 {
     $value = $this->session->getCookie($cookie);
     if (is_null($value)) {
         // try to parse headers because of bug in
         // \Behat\Mink\Driver\BrowserKitDriver::getCookie
         $value = $this->parseCookieFromHeaders($cookie);
     }
     return $value;
 }
 public function testGetCookie()
 {
     $this->driver->expects($this->once())->method('getCookie')->with('name')->will($this->returnValue('value'));
     $this->assertEquals('value', $this->session->getCookie('name'));
 }
Example #3
0
 public function _getCookie($cookie)
 {
     return $this->session->getCookie($cookie);
 }