Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
44 | 1 | public function execute(InputInterface $input, OutputInterface $output) |
|
45 | { |
||
46 | 1 | $this->eventDispatcher->dispatch(Events::SANDBOX_PREPARE); |
|
47 | |||
48 | 1 | if ($input->getOption('create-dbs')) { |
|
49 | 1 | $this->testRunner->runTestCommand('create-dbs', [ |
|
50 | 1 | '--sandbox' => true, |
|
51 | ]); |
||
52 | } |
||
53 | |||
54 | 1 | register_shutdown_function(function() use ($output) { |
|
55 | $output->writeln('<info>Cleaning up sandbox...</info>'); |
||
56 | |||
57 | $this->eventDispatcher->dispatch(Events::SANDBOX_CLEANUP); |
||
58 | 1 | }); |
|
59 | 1 | } |
|
60 | } |
||
61 |