public function WebAssertTest::testResponseHeaderEquals in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/behat/mink/tests/WebAssertTest.php \Behat\Mink\Tests\WebAssertTest::testResponseHeaderEquals()
File
- vendor/
behat/ mink/ tests/ WebAssertTest.php, line 203
Class
Namespace
Behat\Mink\TestsCode
public function testResponseHeaderEquals() {
$this->session
->expects($this
->any())
->method('getResponseHeader')
->will($this
->returnValueMap(array(
array(
'foo',
'bar',
),
array(
'bar',
'baz',
),
)));
$this
->assertCorrectAssertion('responseHeaderEquals', array(
'foo',
'bar',
));
$this
->assertWrongAssertion('responseHeaderEquals', array(
'bar',
'foo',
), 'Behat\\Mink\\Exception\\ExpectationException', 'Current response header "bar" is "baz", but "foo" expected.');
}