use Symfony\Component\HttpKernel\HttpCache\HttpCache;
use Symfony\Component\HttpKernel\HttpCache\Ssi;
class SsiTest extends TestCase
{ public function testHasSurrogateSsiCapability() { $ssi =
new Ssi();
$request = Request::
create('/'
);
$request->headers->
set('Surrogate-Capability', 'abc="SSI/1.0"'
);
$this->
assertTrue($ssi->
hasSurrogateCapability($request));
$request = Request::
create('/'
);
$request->headers->
set('Surrogate-Capability', 'foobar'
);
$this->
assertFalse($ssi->
hasSurrogateCapability($request));
$request = Request::
create('/'
);
$this->
assertFalse($ssi->
hasSurrogateCapability($request));
} public function testAddSurrogateSsiCapability() {