console->find('list'); $commandTester = new CommandTester($command); $commandTester->execute(array( 'command' => $command->getName() )); $this->assertRegExp('/Available commands/', $commandTester->getDisplay()); $this->assertRegExp('/Options/', $commandTester->getDisplay()); $this->assertRegExp('/list/', $commandTester->getDisplay()); } } /* End of file ListCommandTest.php */