コード例 #1
0
 public function testEvent()
 {
     $process = new Process('');
     $command = BehatCommand::getInstance();
     $event = new BehatEvent($this->wrapper, $process, $command);
     $this->assertEquals($this->wrapper, $event->getWrapper());
     $this->assertEquals($process, $event->getProcess());
     $this->assertEquals($command, $event->getCommand());
 }
コード例 #2
0
 /**
  * Constructs a BehatEvent object.
  *
  * @param \BehatWrapper\BehatWrapper $wrapper
  *   The BehatWrapper object that likely instantiated this class.
  * @param \Symfony\Component\Process\Process $process
  *   The Process object being run.
  * @param \BehatWrapper\BehatCommand $command
  *   The BehatCommand object being executed.
  * @param string type
  * @param string buffer
  */
 public function __construct(BehatWrapper $wrapper, Process $process, BehatCommand $command, $type, $buffer)
 {
     parent::__construct($wrapper, $process, $command);
     $this->type = $type;
     $this->buffer = $buffer;
 }
コード例 #3
0
 /**
  * Constructs a BehatEvent object.
  *
  * @param \BehatWrapper\BehatWrapper $wrapper
  *   The BehatWrapper object that likely instantiated this class.
  * @param \Symfony\Component\Process\Process $process
  *   The Process object being run.
  * @param \BehatWrapper\BehatCommand $command
  *   The BehatCommand object being executed.
  * @param string type
  * @param string buffer
  */
 public function __construct(BehatWrapper $wrapper, Process $process, BehatCommand $command)
 {
     parent::__construct($wrapper, $process, $command);
 }