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

testBundleCommandCanBeFoundByAlias() public method

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