$this->
assertEquals('symfony="SSI/1.0"',
$request->headers->
get('Surrogate-Capability'
));
$ssi->
addSurrogateCapability($request);
$this->
assertEquals('symfony="SSI/1.0", symfony="SSI/1.0"',
$request->headers->
get('Surrogate-Capability'
));
} public function testAddSurrogateControl() { $ssi =
new Ssi();
$response =
new Response('foo <!--#include virtual="" -->'
);
$ssi->
addSurrogateControl($response);
$this->
assertEquals('content="SSI/1.0"',
$response->headers->
get('Surrogate-Control'
));
$response =
new Response('foo'
);
$ssi->
addSurrogateControl($response);
$this->
assertEquals('',
$response->headers->
get('Surrogate-Control'
));
} public function testNeedsSsiParsing() { $ssi =
new Ssi();