You are here

public function WebAssertTest::testResponseHeaderNotEquals in Zircon Profile 8.0

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

File

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

Class

WebAssertTest

Namespace

Behat\Mink\Tests

Code

public function testResponseHeaderNotEquals() {
  $this->session
    ->expects($this
    ->any())
    ->method('getResponseHeader')
    ->will($this
    ->returnValueMap(array(
    array(
      'foo',
      'bar',
    ),
    array(
      'bar',
      'baz',
    ),
  )));
  $this
    ->assertCorrectAssertion('responseHeaderNotEquals', array(
    'foo',
    'baz',
  ));
  $this
    ->assertWrongAssertion('responseHeaderNotEquals', array(
    'bar',
    'baz',
  ), 'Behat\\Mink\\Exception\\ExpectationException', 'Current response header "bar" is "baz", but should not be.');
}