mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-09 01:27:20 +08:00
Testcases for RFC7232, sec 3.2
This commit is contained in:
committed by
Alexander Makarov
parent
371fa3f241
commit
bdb4a999d3
@ -52,6 +52,10 @@ class HttpCacheTest extends \yiiunit\TestCase
|
|||||||
$this->assertTrue($method->invoke($httpCache, 1, '"foo"'));
|
$this->assertTrue($method->invoke($httpCache, 1, '"foo"'));
|
||||||
$this->assertFalse($method->invoke($httpCache, 1, '"foos"'));
|
$this->assertFalse($method->invoke($httpCache, 1, '"foos"'));
|
||||||
$this->assertFalse($method->invoke($httpCache, null, null));
|
$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));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user