You are here

public function WebAssertTest::testResponseHeaderNotContains in Zircon Profile 8

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

File

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

Class

WebAssertTest

Namespace

Behat\Mink\Tests

Code

public function testResponseHeaderNotContains() {
  $this->session
    ->expects($this
    ->any())
    ->method('getResponseHeader')
    ->will($this
    ->returnValueMap(array(
    array(
      'foo',
      'bar',
    ),
    array(
      'bar',
      'baz',
    ),
  )));
  $this
    ->assertCorrectAssertion('responseHeaderNotContains', array(
    'foo',
    'bz',
  ));
  $this
    ->assertWrongAssertion('responseHeaderNotContains', array(
    'bar',
    'ba',
  ), 'Behat\\Mink\\Exception\\ExpectationException', 'The text "ba" was found in the "bar" response header, but it should not.');
}