public function testWriteRead() { $output = new StringOutput(); $text = 'foo'; $output->write($text); $this->assertSame($text, $output->getBuffer()); $output->write($text, true); $this->assertSame($text . $text . PHP_EOL, $output->getBuffer()); }
public function testWriteRead() { $output = new StringOutput(); $text = 'foo'; $output->write($text); $this->assertSame($text, $output->getBuffer(), 'Output gets buffered'); }