You are here

public function WebAssertTest::testAddressEqualsEndingInScript in Zircon Profile 8.0

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

File

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

Class

WebAssertTest

Namespace

Behat\Mink\Tests

Code

public function testAddressEqualsEndingInScript() {
  $this->session
    ->expects($this
    ->exactly(2))
    ->method('getCurrentUrl')
    ->will($this
    ->returnValue('http://example.com/script.php'));
  $this
    ->assertCorrectAssertion('addressEquals', array(
    '/script.php',
  ));
  $this
    ->assertWrongAssertion('addressEquals', array(
    '/',
  ), 'Behat\\Mink\\Exception\\ExpectationException', 'Current page is "/script.php", but "/" expected.');
}