public function KernelTest::testInitializeBundleThrowsExceptionWhenRegisteringTwoBundlesWithTheSameName 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::testInitializeBundleThrowsExceptionWhenRegisteringTwoBundlesWithTheSameName()
@expectedException \LogicException @expectedExceptionMessage Trying to register two bundles with the same name "DuplicateName"
File
- vendor/
symfony/ http-kernel/ Tests/ KernelTest.php, line 700
Class
Namespace
Symfony\Component\HttpKernel\TestsCode
public function testInitializeBundleThrowsExceptionWhenRegisteringTwoBundlesWithTheSameName() {
$fooBundle = $this
->getBundle(null, null, 'FooBundle', 'DuplicateName');
$barBundle = $this
->getBundle(null, null, 'BarBundle', 'DuplicateName');
$kernel = $this
->getKernel(array(), array(
$fooBundle,
$barBundle,
));
$kernel
->boot();
}