public function RequestTest::testVeryLongHosts in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/RequestTest.php \Symfony\Component\HttpFoundation\Tests\RequestTest::testVeryLongHosts()
@dataProvider getLongHostNames
File
- vendor/
symfony/ http-foundation/ Tests/ RequestTest.php, line 1825
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testVeryLongHosts($host) {
$start = microtime(true);
$request = Request::create('/');
$request->headers
->set('host', $host);
$this
->assertEquals($host, $request
->getHost());
$this
->assertLessThan(1, microtime(true) - $start);
}