/** * clear routing cache * @param Request $request * @return RedirectResponse */ public function routingAction(Request $request) { $this->cacheManager->clearAnnotations(); return $this->flashResponse($request, 'annotations', true); }
/** * test annotation deletion * @covers CacheManager::clearAnnotations */ public function testClearAnnotations() { $this->assertTrue(is_dir($this->cacheDir . DIRECTORY_SEPARATOR . 'annotations')); $this->cache_manager->clearAnnotations(); $this->assertFalse(is_dir($this->cacheDir . DIRECTORY_SEPARATOR . 'annotations')); }