public function SymfonyStyleTest::testOutputs in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Style/SymfonyStyleTest.php \Symfony\Component\Console\Tests\Style\SymfonyStyleTest::testOutputs()
@dataProvider inputCommandToOutputFilesProvider
File
- vendor/
symfony/ console/ Tests/ Style/ SymfonyStyleTest.php, line 34
Class
Namespace
Symfony\Component\Console\Tests\StyleCode
public function testOutputs($inputCommandFilepath, $outputFilepath) {
$code = (require $inputCommandFilepath);
$this->command
->setCode($code);
$this->tester
->execute(array(), array(
'interactive' => false,
'decorated' => false,
));
$this
->assertStringEqualsFile($outputFilepath, $this->tester
->getDisplay(true));
}