Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function testConstructorApcuNotEnabledThrowsException(): void |
||
18 | { |
||
19 | if (function_exists('apcu_enabled') && apcu_enabled()) { |
||
20 | $this->markTestSkipped('ext-apcu is enabled'); |
||
21 | } |
||
22 | |||
23 | $this->expectException(CacheException::class); |
||
24 | $this->expectExceptionMessage('ACPu extension must be installed and enabled'); |
||
25 | new ApcuCache(new MoParser(null), 'foo', 'bar'); |
||
26 | } |
||
28 |