示例#1
0
 /**
  * @param string $command
  * @param bool $decorated
  * @param \PHPUnit_Framework_MockObject_Matcher_Invocation|null $matcher
  */
 protected function executeCommand($command, $decorated, \PHPUnit_Framework_MockObject_Matcher_Invocation $matcher = null)
 {
     if ($decorated) {
         $command .= ' --ansi';
     }
     $this->io->expects($this->atLeastOnce())->method('isDecorated')->will($this->returnValue($decorated));
     $this->event_command->expects($this->atLeastOnce())->method('getIO')->will($this->returnValue($this->io));
     $this->container->expects($matcher ?: $this->once())->method('executeCommand')->with($command, 0);
 }