public function CommandTest::testRunInteractive in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Command/CommandTest.php \Symfony\Component\Console\Tests\Command\CommandTest::testRunInteractive()
File
- vendor/
symfony/ console/ Tests/ Command/ CommandTest.php, line 217
Class
Namespace
Symfony\Component\Console\Tests\CommandCode
public function testRunInteractive() {
$tester = new CommandTester(new \TestCommand());
$tester
->execute(array(), array(
'interactive' => true,
));
$this
->assertEquals('interact called' . PHP_EOL . 'execute called' . PHP_EOL, $tester
->getDisplay(), '->run() calls the interact() method if the input is interactive');
}