public function responseHeaderMatches($name, $regex)
    {
        $actual = $this->session->getResponseHeader($name);
        $message = sprintf('The pattern "%s" was not found anywhere in the "%s" response header.', $regex, $name);

        $this->assert((bool) preg_match($regex, $actual), $message);
    }
public function responseHeaderMatches($name, $regex)
    {
        $actual = $this->session->getResponseHeader($name);
        $message = sprintf('The pattern "%s" was not found anywhere in the "%s" response header.', $regex, $name);

        $this->assert((bool) preg_match($regex, $actual), $message);
    }
public function responseHeaderMatches ( $ name , $ regex ) { $ actual = $ this -> session -> getResponseHeader ( $ name ) ; $ message = sprintf ( 'The pattern "%s" was not found anywhere in the "%s" response header.' , $ regex , $ name ) ; $ this -> assert ( ( bool ) preg_match ( $ regex , $ actual ) , $ message ) ; }
Checks that current response header matches regex.

@param string $name
@param string $regex

@throws ExpectationException
Checks that current response header matches regex .