Nelmio\SecurityBundle\Tests\Listener\ContentSecurityPolicyListenerTest::testVendorPrefixes PHP Method

testVendorPrefixes() public method

public testVendorPrefixes ( )
    public function testVendorPrefixes()
    {
        $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));
        $response = $this->callListener($listener, '/', true);
        $this->assertEquals($response->headers->get('Content-Security-Policy'), $response->headers->get('X-Content-Security-Policy'), 'Response should contain non-standard X-Content-Security-Policy header');
    }