You are here

public function WebAssertTest::testResponseHeaderContains in Zircon Profile 8

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

File

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

Class

WebAssertTest

Namespace

Behat\Mink\Tests

Code

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