public function StoreTest::testDoesNotReturnEntriesThatSlightlyVaryWithLookup in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/HttpCache/StoreTest.php \Symfony\Component\HttpKernel\Tests\HttpCache\StoreTest::testDoesNotReturnEntriesThatSlightlyVaryWithLookup()
File
- vendor/
symfony/ http-kernel/ Tests/ HttpCache/ StoreTest.php, line 171
Class
Namespace
Symfony\Component\HttpKernel\Tests\HttpCacheCode
public function testDoesNotReturnEntriesThatSlightlyVaryWithLookup() {
$req1 = Request::create('/test', 'get', array(), array(), array(), array(
'HTTP_FOO' => 'Foo',
'HTTP_BAR' => 'Bar',
));
$req2 = Request::create('/test', 'get', array(), array(), array(), array(
'HTTP_FOO' => 'Foo',
'HTTP_BAR' => 'Bam',
));
$res = new Response('test', 200, array(
'Vary' => array(
'Foo',
'Bar',
),
));
$this->store
->write($req1, $res);
$this
->assertNull($this->store
->lookup($req2));
}