public function StreamOutputTest::testDoWrite in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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
Namespace
Symfony\Component\Console\Tests\OutputCode
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');
}