protected function getContainer()
{
$kernel = $this->getMock('Symfony\Component\HttpKernel\KernelInterface');
$kernel
->expects($this->any())
->method('getBundle')
->will($this->returnValue($this->getBundle()))
;
$filesystem = $this->getMock('Symfony\Component\HttpKernel\Util\Filesystem');
$filesystem
->expects($this->any())
->method('isAbsolutePath')
->will($this->returnValue(true))
;
$container = new Container();
$container->set('kernel', $kernel);
$container->set('filesystem', $filesystem);
$container->setParameter('kernel.root_dir', sys_get_temp_dir());
return $container;
}