Symfony\Bundle\FrameworkBundle\Tests\Console\ApplicationTest::testBundleCommandsAreRetrievable PHP Method

testBundleCommandsAreRetrievable() public method

    public function testBundleCommandsAreRetrievable()
    {
        $bundle = $this->createBundleMock(array());
        $kernel = $this->getKernel(array($bundle));
        $application = new Application($kernel);
        $application->all();
        // Calling twice: registration should only be done once.
        $application->all();
    }