| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 13 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 17 | public function testAfterCall() | ||
| 18 |     { | ||
| 19 | $proxy = new AopProxyService(); | ||
| 20 | $aspect = new CacheAfterCallAspect(); | ||
| 21 | $proxy->afterCall = array( | ||
| 22 | 'get' => $aspect | ||
| 23 | ); | ||
| 24 | $count = count(PartialCacheCollector::getTemplateCache()); | ||
| 25 | $proxy->proxied = Injector::inst()->get(CacheInterface::class . '.backend'); | ||
| 26 | $cacheKey = 'myCacheKey'; | ||
| 27 | $proxy->get($cacheKey); | ||
| 28 | $this->assertCount($count + 1, PartialCacheCollector::getTemplateCache()); | ||
| 29 | } | ||
| 30 | } | ||
| 31 |