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