You are here

public function SymfonyStyleTest::testOutputs in Zircon Profile 8

Same name and namespace in other branches
  1. 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

SymfonyStyleTest

Namespace

Symfony\Component\Console\Tests\Style

Code

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));
}