| @@ 45-60 (lines=16) @@ | ||
| 42 | ]); |
|
| 43 | } |
|
| 44 | ||
| 45 | public function testApcuCacheFactory() |
|
| 46 | { |
|
| 47 | $cache = Injector::inst()->get(CacheInterface::class .'.TestApcuCache'); |
|
| 48 | $this->assertInstanceOf( |
|
| 49 | MockCache::class, |
|
| 50 | $cache |
|
| 51 | ); |
|
| 52 | $this->assertEquals( |
|
| 53 | [ |
|
| 54 | 'TestApcuCache_'.md5(BASE_PATH), |
|
| 55 | 2600, |
|
| 56 | 'ss40test' |
|
| 57 | ], |
|
| 58 | $cache->getArgs() |
|
| 59 | ); |
|
| 60 | } |
|
| 61 | ||
| 62 | public function testMemCacheFactory() |
|
| 63 | { |
|
| @@ 62-77 (lines=16) @@ | ||
| 59 | ); |
|
| 60 | } |
|
| 61 | ||
| 62 | public function testMemCacheFactory() |
|
| 63 | { |
|
| 64 | $cache = Injector::inst()->get(CacheInterface::class .'.TestMemcache'); |
|
| 65 | $this->assertInstanceOf( |
|
| 66 | MockCache::class, |
|
| 67 | $cache |
|
| 68 | ); |
|
| 69 | $this->assertEquals( |
|
| 70 | [ |
|
| 71 | null, |
|
| 72 | 'TestMemCache_'.md5(BASE_PATH), |
|
| 73 | 5600 |
|
| 74 | ], |
|
| 75 | $cache->getArgs() |
|
| 76 | ); |
|
| 77 | } |
|
| 78 | } |
|
| 79 | ||