From bdb4a999d3ad7b58970b22cb49f5a7b46d24a8e8 Mon Sep 17 00:00:00 2001 From: DaSourcerer Date: Tue, 24 Mar 2015 21:31:51 +0100 Subject: [PATCH] Testcases for RFC7232, sec 3.2 --- tests/unit/framework/filters/HttpCacheTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit/framework/filters/HttpCacheTest.php b/tests/unit/framework/filters/HttpCacheTest.php index 00d9cb7706..ca5d932486 100644 --- a/tests/unit/framework/filters/HttpCacheTest.php +++ b/tests/unit/framework/filters/HttpCacheTest.php @@ -52,6 +52,10 @@ class HttpCacheTest extends \yiiunit\TestCase $this->assertTrue($method->invoke($httpCache, 1, '"foo"')); $this->assertFalse($method->invoke($httpCache, 1, '"foos"')); $this->assertFalse($method->invoke($httpCache, null, null)); + + $_SERVER['HTTP_IF_NONE_MATCH'] = '*'; + $this->assertFalse($method->invoke($httpCache, 0, '"foo"')); + $this->assertFalse($method->invoke($httpCache, 0, null)); } /**