public function testReportOnly()
{
$spec = 'example.org';
$listener = $this->buildSimpleListener(array('default-src' => $spec, 'script-src' => $spec, 'object-src' => $spec, 'style-src' => $spec, 'img-src' => $spec, 'media-src' => $spec, 'frame-src' => $spec, 'font-src' => $spec, 'connect-src' => $spec), true);
$response = $this->callListener($listener, '/', true);
$this->assertNull($response->headers->get('Content-Security-Policy'));
$this->assertNotNull($response->headers->get('Content-Security-Policy-Report-Only'));
}