/** * Add option to `run` command configuration. * * @param BasicConsoleEvent $event */ public function onCommandConfigure(BasicConsoleEvent $event) { if ($event->getCommand()->getName() != 'run') { return; } $event->getCommand()->addOption('xdebug', null, InputOption::VALUE_OPTIONAL, 'Start Xdebug debugger on tests; use given IDE key. Default value is used only if empty option is passed.', 'phpstorm'); }
public function testShouldGetPropertiesPassedInConstructor() { $event = new BasicConsoleEvent($this->commandMock); $this->assertSame($this->commandMock, $event->getCommand()); }