You are here

public function RequestTest::testToString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/RequestTest.php \Symfony\Component\HttpFoundation\Tests\RequestTest::testToString()

File

vendor/symfony/http-foundation/Tests/RequestTest.php, line 1401

Class

RequestTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testToString() {
  $request = new Request();
  $request->headers
    ->set('Accept-language', 'zh, en-us; q=0.8, en; q=0.6');
  $this
    ->assertContains('Accept-Language: zh, en-us; q=0.8, en; q=0.6', $request
    ->__toString());
}