public function CommandTest::testLegacyAsText 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::testLegacyAsText()
@group legacy
File
- vendor/
symfony/ console/ Tests/ Command/ CommandTest.php, line 317
Class
Namespace
Symfony\Component\Console\Tests\CommandCode
public function testLegacyAsText() {
$command = new \TestCommand();
$command
->setApplication(new Application());
$tester = new CommandTester($command);
$tester
->execute(array(
'command' => $command
->getName(),
));
$this
->assertStringEqualsFile(self::$fixturesPath . '/command_astext.txt', $command
->asText(), '->asText() returns a text representation of the command');
}