Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b44df60a85
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (21 sloc) 0.855 kb
<?php
namespace Behat\MinkBundle\Tests;
class SymfonySessionTest extends BaseSessionTestCase
{
protected function getSessionName()
{
return 'symfony';
}
public function testHeaders()
{
$session = $this->getMink()->getSession();
$session->setRequestHeader('Accept-Language', 'fr');
$session->visit($this->base . '/_behat/tests/headers');
$this->assertContains("'accept-language' =>", $session->getPage()->getContent());
$this->assertContains("'fr'", $session->getPage()->getContent());
$session->setRequestHeader('Accept-Language', 'ru');
$session->visit($this->base . '/_behat/tests/headers');
$this->assertContains("'accept-language' =>", $session->getPage()->getContent());
$this->assertContains("'ru'", $session->getPage()->getContent());
}
}
Jump to Line
Something went wrong with that request. Please try again.