public function HeaderTest::testSetUserAgent in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/driver-testsuite/tests/Basic/HeaderTest.php \Behat\Mink\Tests\Driver\Basic\HeaderTest::testSetUserAgent()
File
- vendor/
behat/ mink/ driver-testsuite/ tests/ Basic/ HeaderTest.php, line 31
Class
Namespace
Behat\Mink\Tests\Driver\BasicCode
public function testSetUserAgent() {
$session = $this
->getSession();
$session
->setRequestHeader('user-agent', 'foo bar');
$session
->visit($this
->pathTo('/headers.php'));
$this
->assertContains('[HTTP_USER_AGENT] => foo bar', $session
->getPage()
->getContent());
}