scratch – Blame information for rev 122
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
120 | office | 1 | <?php |
2 | |||
3 | namespace Doctrine\Tests\Common\Cache; |
||
4 | |||
5 | use Doctrine\Common\Cache\ZendDataCache; |
||
6 | |||
7 | /** |
||
8 | * @requires function zend_shm_cache_fetch |
||
9 | */ |
||
10 | class ZendDataCacheTest extends CacheTest |
||
11 | { |
||
12 | protected function setUp() |
||
13 | { |
||
14 | if ('apache2handler' !== php_sapi_name()) { |
||
15 | $this->markTestSkipped('Zend Data Cache only works in apache2handler SAPI.'); |
||
16 | } |
||
17 | } |
||
18 | |||
19 | public function testGetStats() |
||
20 | { |
||
21 | $cache = $this->_getCacheDriver(); |
||
22 | $stats = $cache->getStats(); |
||
23 | |||
24 | $this->assertNull($stats); |
||
25 | } |
||
26 | |||
27 | protected function _getCacheDriver() |
||
28 | { |
||
29 | return new ZendDataCache(); |
||
30 | } |
||
31 | } |