Symfony\Bundle\FrameworkBundle\Console\Application::find PHP Method

find() public method

public find ( $name )
    public function find($name)
    {
        $this->registerCommands();
        return parent::find($name);
    }

Usage Example

 public function testExecute()
 {
     $expected = '/^.+ [a-z0-9]+@local.+api-key: [a-f0-9]+ secret: [a-f0-9]+$/';
     $commandTester = new CommandTester($this->instance->find('hayapi:create-user'));
     $commandTester->execute(array('username' => $this->userIdentifier, 'email' => $this->userIdentifier, 'password' => $this->userIdentifier), array('interactive'));
     $this->assertRegExp($expected, $commandTester->getDisplay());
 }
All Usage Examples Of Symfony\Bundle\FrameworkBundle\Console\Application::find