public function KernelTest::testClassCacheIsNotLoadedByDefault

File

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

Class

KernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

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