23 $this->stream = fopen(
'php://memory',
'a',
false);
34 $this->assertEquals(
Output::VERBOSITY_QUIET, $output->getVerbosity(),
'__construct() takes the verbosity as its first argument');
35 $this->assertTrue($output->isDecorated(),
'__construct() takes the decorated flag as its second argument');
50 $this->assertEquals($this->stream, $output->getStream(),
'->getStream() returns the current stream');
56 $output->writeln(
'foo');
57 rewind($output->getStream());
58 $this->assertEquals(
'foo'.PHP_EOL, stream_get_contents($output->getStream()),
'->doWrite() writes to the stream');