Ejemplo n.º 1
0
 public function testShouldGetPropertiesPassedInConstructor()
 {
     $event = new RunTestsProcessEvent($this->commandMock, $this->inputMock, $this->outputMock, $this->processBuilder, ['foo', 'bar']);
     $this->assertSame($this->commandMock, $event->getCommand());
     $this->assertSame($this->inputMock, $event->getInput());
     $this->assertSame($this->outputMock, $event->getOutput());
     $this->assertSame($this->processBuilder, $event->getProcessBuilder());
     $this->assertSame(['foo', 'bar'], $event->getArgs());
 }
Ejemplo n.º 2
0
 /**
  * If the $xdebugIdeKey variable is set, pass it to the process as XDEBUG_CONFIG environment variable
  *
  * @param RunTestsProcessEvent $event
  */
 public function onCommandRunTestsProcess(RunTestsProcessEvent $event)
 {
     if ($this->xdebugIdeKey) {
         $event->getProcessBuilder()->setEnv('XDEBUG_CONFIG', 'idekey=' . $this->xdebugIdeKey);
     }
 }