You are here

public function SessionTest::testGetResponseHeader in Zircon Profile 8.0

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

@dataProvider provideResponseHeader

File

vendor/behat/mink/tests/SessionTest.php, line 136

Class

SessionTest

Namespace

Behat\Mink\Tests

Code

public function testGetResponseHeader($expected, $name, array $headers) {
  $this->driver
    ->expects($this
    ->once())
    ->method('getResponseHeaders')
    ->willReturn($headers);
  $this
    ->assertSame($expected, $this->session
    ->getResponseHeader($name));
}