You are here

public function CommandTesterTest::testGetOutput in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Tester/CommandTesterTest.php \Symfony\Component\Console\Tests\Tester\CommandTesterTest::testGetOutput()

File

vendor/symfony/console/Tests/Tester/CommandTesterTest.php, line 53

Class

CommandTesterTest

Namespace

Symfony\Component\Console\Tests\Tester

Code

public function testGetOutput() {
  rewind($this->tester
    ->getOutput()
    ->getStream());
  $this
    ->assertEquals('foo' . PHP_EOL, stream_get_contents($this->tester
    ->getOutput()
    ->getStream()), '->getOutput() returns the current output instance');
}