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