protected function KernelTest::getKernelForTest in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Tests/KernelTest.php \Symfony\Component\HttpKernel\Tests\KernelTest::getKernelForTest()
4 calls to KernelTest::getKernelForTest()
- KernelTest::testBootSetsTheBootedFlagToTrue in vendor/
symfony/ http-kernel/ Tests/ KernelTest.php - KernelTest::testInitializeBundles in vendor/
symfony/ http-kernel/ Tests/ KernelTest.php - KernelTest::testInitializeBundlesSupportInheritanceCascade in vendor/
symfony/ http-kernel/ Tests/ KernelTest.php - KernelTest::testInitializeBundlesSupportsArbitraryBundleRegistrationOrder in vendor/
symfony/ http-kernel/ Tests/ KernelTest.php
File
- vendor/
symfony/ http-kernel/ Tests/ KernelTest.php, line 837
Class
Namespace
Symfony\Component\HttpKernel\TestsCode
protected function getKernelForTest(array $methods = array()) {
$kernel = $this
->getMockBuilder('Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\KernelForTest')
->setConstructorArgs(array(
'test',
false,
))
->setMethods($methods)
->getMock();
$p = new \ReflectionProperty($kernel, 'rootDir');
$p
->setAccessible(true);
$p
->setValue($kernel, __DIR__ . '/Fixtures');
return $kernel;
}