コード例 #1
0
 /**
  * @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);
     }
 }
コード例 #2
0
 public function testStdOutStream()
 {
     $out = new StdOut();
     $stream = $out->getDefaultOutputStream()->getStream();
     $this->assertSame(get_resource_type($stream), 'stream');
 }