protected function FileCacheReaderTest::getReader

Overrides AbstractReaderTest::getReader

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Annotations/FileCacheReaderTest.php, line 12

Class

FileCacheReaderTest

Namespace

Doctrine\Tests\Common\Annotations

Code

protected function getReader() {
  $this->cacheDir = sys_get_temp_dir() . "/annotations_" . uniqid();
  @mkdir($this->cacheDir);
  return new FileCacheReader(new AnnotationReader(), $this->cacheDir);
}