You are here

public function StreamOutputTest::testDoWrite in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Output/StreamOutputTest.php \Symfony\Component\Console\Tests\Output\StreamOutputTest::testDoWrite()

File

vendor/symfony/console/Tests/Output/StreamOutputTest.php, line 53

Class

StreamOutputTest

Namespace

Symfony\Component\Console\Tests\Output

Code

public function testDoWrite() {
  $output = new StreamOutput($this->stream);
  $output
    ->writeln('foo');
  rewind($output
    ->getStream());
  $this
    ->assertEquals('foo' . PHP_EOL, stream_get_contents($output
    ->getStream()), '->doWrite() writes to the stream');
}