protected function setUp()
{
$this->kernel = $this->getMock('Symfony\\Component\\HttpKernel\\HttpKernelInterface');
$this->nonceGenerator = $this->getMockBuilder('Nelmio\\SecurityBundle\\ContentSecurityPolicy\\NonceGenerator')->disableOriginalConstructor()->getMock();
$this->shaComputer = $this->getMockBuilder('Nelmio\\SecurityBundle\\ContentSecurityPolicy\\ShaComputer')->disableOriginalConstructor()->getMock();
$this->shaComputer->expects($this->any())->method('computeForScript')->will($this->returnValue('sha-script'));
$this->shaComputer->expects($this->any())->method('computeForStyle')->will($this->returnValue('sha-style'));
}