/** * @param string $message * @param mixed[] ...$replacements */ protected function writeLine($message, ...$replacements) { if (function_exists('writeln')) { writeln(sprintf($message, ...$replacements)); } else { $this->stdOut->writeLine($message, ...$replacements); } }
public function testStdOutStream() { $out = new StdOut(); $stream = $out->getDefaultOutputStream()->getStream(); $this->assertSame(get_resource_type($stream), 'stream'); }