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

testBundleCommandCanBeFound() public method

    public function testBundleCommandCanBeFound()
    {
        $command = new Command('example');
        $bundle = $this->createBundleMock(array($command));
        $kernel = $this->getKernel(array($bundle));
        $application = new Application($kernel);
        $this->assertSame($command, $application->find('example'));
    }