1 | <?php |
||
11 | */ |
||
12 | class ZendDataCacheTest extends CacheTest |
||
13 | { |
||
14 | protected function setUp() : void |
||
15 | { |
||
16 | if (PHP_SAPI === 'apache2handler') { |
||
17 | return; |
||
18 | } |
||
19 | |||
20 | $this->markTestSkipped('Zend Data Cache only works in apache2handler SAPI.'); |
||
21 | } |
||
22 | |||
23 | public function testGetStats() : void |
||
24 | { |
||
25 | $cache = $this->_getCacheDriver(); |
||
26 | $stats = $cache->getStats(); |
||
27 | |||
28 | self::assertNull($stats); |
||
29 | } |
||
30 | |||
31 | protected function _getCacheDriver() : CacheProvider |
||
32 | { |
||
33 | return new ZendDataCache(); |
||
36 |