/** * @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); }
/** * @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); }