public function WebAssertTest::testAddressNotEqualsEndingInScript in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/behat/mink/tests/WebAssertTest.php \Behat\Mink\Tests\WebAssertTest::testAddressNotEqualsEndingInScript()
File
- vendor/
behat/ mink/ tests/ WebAssertTest.php, line 93
Class
Namespace
Behat\Mink\TestsCode
public function testAddressNotEqualsEndingInScript() {
$this->session
->expects($this
->exactly(2))
->method('getCurrentUrl')
->will($this
->returnValue('http://example.com/script.php'));
$this
->assertCorrectAssertion('addressNotEquals', array(
'/',
));
$this
->assertWrongAssertion('addressNotEquals', array(
'/script.php',
), 'Behat\\Mink\\Exception\\ExpectationException', 'Current page is "/script.php", but should not be.');
}