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

        $this->assert(!preg_match($regex, $actual), $message);
    }
public function responseHeaderNotMatches($name, $regex)
    {
        $actual = $this->session->getResponseHeader($name);
        $message = sprintf(
            'The pattern "%s" was found in the text of the "%s" response header, but it should not.',
            $regex,
            $name
        );

        $this->assert(!preg_match($regex, $actual), $message);
    }
public function responseHeaderNotMatches ( $ name , $ regex ) { $ actual = $ this -> session -> getResponseHeader ( $ name ) ; $ message = sprintf ( 'The pattern "%s" was found in the text of the "%s" response header, but it should not.' , $ regex , $ name ) ; $ this -> assert ( ! preg_match ( $ regex , $ actual ) , $ message ) ; }
Checks that current response header does not match regex.

@param string $name
@param string $regex

@throws ExpectationException
Checks that current response header does not match regex .