public function testClassCacheIsNotLoadedWhenKernelIsNotBooted() {
$kernel = $this
->getMockBuilder('Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\KernelForTest')
->disableOriginalConstructor()
->setMethods(array(
'initializeBundles',
'initializeContainer',
'getBundles',
'doLoadClassCache',
))
->getMock();
$kernel
->loadClassCache();
$kernel
->expects($this
->any())
->method('getBundles')
->will($this
->returnValue(array()));
$kernel
->expects($this
->never())
->method('doLoadClassCache');
}