expectOutputString('foo'); $output = new Output(''); $output->setOutput('foo'); } public function testSetReadfile() { $this->expectOutputString(file_get_contents(__FILE__)); $output = new Output(''); $output->setReadfile(__FILE__); } public function testSetReadfileStream() { $this->expectOutputString(file_get_contents(__FILE__)); $output = new Output(''); $output->setReadfile(fopen(__FILE__, 'r')); } }