1234567891011121314151617181920212223242526 |
- <?php
-
- namespace Doctrine\Tests\Common\Annotations;
-
- use Doctrine\Common\Annotations\AnnotationReader;
- use Doctrine\Common\Annotations\FileCacheReader;
-
- class FileCacheReaderTest extends AbstractReaderTest
- {
- private $cacheDir;
-
- protected function getReader()
- {
- $this->cacheDir = sys_get_temp_dir() . "/annotations_". uniqid();
- @mkdir($this->cacheDir);
- return new FileCacheReader(new AnnotationReader(), $this->cacheDir);
- }
-
- public function tearDown()
- {
- foreach (glob($this->cacheDir.'/*.php') AS $file) {
- unlink($file);
- }
- rmdir($this->cacheDir);
- }
- }
|