| Total Complexity | 7 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class TestKernel extends CoreKernel |
||
| 11 | { |
||
| 12 | |||
| 13 | /** @var string[] $ciConfigs */ |
||
| 14 | private $ciConfigs = []; |
||
| 15 | |||
| 16 | |||
| 17 | public function __construct($basePath) |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Reset kernel between tests. |
||
| 25 | * Note: this avoids resetting services (See TestState for service specific reset) |
||
| 26 | * |
||
| 27 | * @return $this |
||
| 28 | */ |
||
| 29 | public function reset() |
||
| 30 | { |
||
| 31 | $this->setEnvironment(self::DEV); |
||
| 32 | $this->bootPHP(); |
||
| 33 | return $this; |
||
| 34 | } |
||
| 35 | |||
| 36 | protected function bootPHP() |
||
| 42 | } |
||
| 43 | |||
| 44 | protected function getIncludeTests() |
||
| 47 | } |
||
| 48 | |||
| 49 | |||
| 50 | /** |
||
| 51 | * Set a list of CI configurations that should cause a module's test not to be added to a manifest |
||
| 52 | * @param string[] $ciConfigs |
||
| 53 | */ |
||
| 54 | public function setIgnoredCIConfigs(array $ciConfigs): self |
||
| 55 | { |
||
| 56 | $this->ciConfigs = $ciConfigs; |
||
| 57 | return $this; |
||
| 58 | } |
||
| 59 | |||
| 60 | protected function getIgnoredCIConfigs(): array |
||
| 61 | { |
||
| 62 | return $this->ciConfigs; |
||
| 63 | } |
||
| 64 | |||
| 65 | protected function bootErrorHandling() |
||
| 69 | } |
||
| 70 | } |
||
| 71 |