public function WebAssertTest::testResponseHeaderNotContains in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/behat/mink/tests/WebAssertTest.php \Behat\Mink\Tests\WebAssertTest::testResponseHeaderNotContains()
File
- vendor/
behat/ mink/ tests/ WebAssertTest.php, line 266
Class
Namespace
Behat\Mink\TestsCode
public function testResponseHeaderNotContains() {
$this->session
->expects($this
->any())
->method('getResponseHeader')
->will($this
->returnValueMap(array(
array(
'foo',
'bar',
),
array(
'bar',
'baz',
),
)));
$this
->assertCorrectAssertion('responseHeaderNotContains', array(
'foo',
'bz',
));
$this
->assertWrongAssertion('responseHeaderNotContains', array(
'bar',
'ba',
), 'Behat\\Mink\\Exception\\ExpectationException', 'The text "ba" was found in the "bar" response header, but it should not.');
}