public function cookieEquals($name, $value)
    {
        $this->cookieExists($name);

        $actualValue = $this->session->getCookie($name);
        $message = sprintf('Cookie "%s" value is "%s", but should be "%s".', $name, $actualValue, $value);

        $this->assert($actualValue == $value, $message);
    }
public function cookieEquals($name, $value)
    {
        $this->cookieExists($name);

        $actualValue = $this->session->getCookie($name);
        $message = sprintf('Cookie "%s" value is "%s", but should be "%s".', $name, $actualValue, $value);

        $this->assert($actualValue == $value, $message);
    }
public function cookieEquals ( $ name , $ value ) { $ this -> cookieExists ( $ name ) ; $ actualValue = $ this -> session -> getCookie ( $ name ) ; $ message = sprintf ( 'Cookie "%s" value is "%s", but should be "%s".' , $ name , $ actualValue , $ value ) ; $ this -> assert ( $ actualValue == $ value , $ message ) ; }
Checks that specified cookie exists and its value equals to a given one.

@param string $name  cookie name
@param string $value cookie value

@throws ExpectationException
Checks that specified cookie exists and its value equals to a given one .