Exemplo n.º 1
0
 /**
  * @dataProvider getTypes
  *
  * @param int $type
  */
 public function testWriteLn($type)
 {
     $this->output->expects($this->once())->method('writeln')->with('foo', $type);
     $this->decorator->writeln('foo', $type);
 }
Exemplo n.º 2
0
 /**
  * @param array|string $messages
  * @param int $type
  */
 public function writeln($messages, $type = self::OUTPUT_NORMAL)
 {
     $this->writeToFile($messages, true);
     parent::writeln($messages, $type);
 }