public function KernelTest::testClassCacheIsNotLoadedWhenKernelIsNotBooted

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/KernelTest.php, line 143

Class

KernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

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');
}