Пример #1
0
 /**
  * @dataProvider getNewlineTypes
  *
  * @param bool $newline
  * @param int $type
  */
 public function testWrite($newline, $type)
 {
     $this->output->expects($this->once())->method('write')->with('foo', $newline, $type);
     $this->decorator->write('foo', $newline, $type);
 }
Пример #2
0
 /**
  * @param array|string $messages
  * @param bool|false $newline
  * @param int $type
  */
 public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL)
 {
     $this->writeToFile($messages, $newline);
     parent::write($messages, $newline, $type);
 }