We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class DiContainerTest extends TestCase { |
||
9 | private const PHPDI_COMPILED_CONTAINER_FILE = "/tmp/CompiledContainer.php"; |
||
10 | |||
11 | protected function tearDown(): void { |
||
14 | } |
||
15 | } |
||
16 | |||
17 | public function test_compilation_enabled_true() { |
||
18 | // Given environment variable is turned on |
||
19 | $_ENV["ENABLE_PHPDI_COMPILATION"] = "true"; |
||
20 | // And the container is built |
||
21 | DiContainer::initializeContainer(); |
||
22 | // Then |
||
23 | self::assertFileExists(self::PHPDI_COMPILED_CONTAINER_FILE); |
||
24 | } |
||
25 | |||
26 | public function test_compilation_enabled_false() { |
||
33 | } |
||
34 | } |
||
35 |