public function KernelTest::testBootSetsTheContainerToTheBundles in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/KernelTest.php \Symfony\Component\HttpKernel\Tests\KernelTest::testBootSetsTheContainerToTheBundles()
File
- vendor/
symfony/ http-kernel/ Tests/ KernelTest.php, line 66
Class
Namespace
Symfony\Component\HttpKernel\TestsCode
public function testBootSetsTheContainerToTheBundles() {
$bundle = $this
->getMock('Symfony\\Component\\HttpKernel\\Bundle\\Bundle');
$bundle
->expects($this
->once())
->method('setContainer');
$kernel = $this
->getKernel(array(
'initializeBundles',
'initializeContainer',
'getBundles',
));
$kernel
->expects($this
->once())
->method('getBundles')
->will($this
->returnValue(array(
$bundle,
)));
$kernel
->boot();
}