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