You are here

public function WebAssertTest::testAddressNotEqualsEndingInScript in Zircon Profile 8

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

File

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

Class

WebAssertTest

Namespace

Behat\Mink\Tests

Code

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