public function cookieExists($name)
    {
        $message = sprintf('Cookie "%s" is not set, but should be.', $name);
        $this->assert($this->session->getCookie($name) !== null, $message);
    }
public function cookieExists($name)
    {
        $message = sprintf('Cookie "%s" is not set, but should be.', $name);
        $this->assert($this->session->getCookie($name) !== null, $message);
    }
public function cookieExists ( $ name ) { $ message = sprintf ( 'Cookie "%s" is not set, but should be.' , $ name ) ; $ this -> assert ( $ this -> session -> getCookie ( $ name ) !== null , $ message ) ; }
Checks that specified cookie exists.

@param string $name cookie name

@throws ExpectationException
Checks that specified cookie exists .