You are here

public function WebAssertTest::testAddressNotEquals in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink/tests/WebAssertTest.php \Behat\Mink\Tests\WebAssertTest::testAddressNotEquals()

File

vendor/behat/mink/tests/WebAssertTest.php, line 76

Class

WebAssertTest

Namespace

Behat\Mink\Tests

Code

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.');
}