public function WebAssertTest::testStatusCodeEquals in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/behat/mink/tests/WebAssertTest.php \Behat\Mink\Tests\WebAssertTest::testStatusCodeEquals()
File
- vendor/
behat/ mink/ tests/ WebAssertTest.php, line 169
Class
Namespace
Behat\Mink\TestsCode
public function testStatusCodeEquals() {
$this->session
->expects($this
->exactly(2))
->method('getStatusCode')
->will($this
->returnValue(200));
$this
->assertCorrectAssertion('statusCodeEquals', array(
200,
));
$this
->assertWrongAssertion('statusCodeEquals', array(
404,
), 'Behat\\Mink\\Exception\\ExpectationException', 'Current response status code is 200, but 404 expected.');
}