public function FileCacheReaderTest::testAttemptToCreateAnnotationCacheDir

@group DCOM-81

File

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

Class

FileCacheReaderTest

Namespace

Doctrine\Tests\Common\Annotations

Code

public function testAttemptToCreateAnnotationCacheDir() {
  $this->cacheDir = sys_get_temp_dir() . "/not_existed_dir_" . uniqid();
  $this
    ->assertFalse(is_dir($this->cacheDir));
  $cache = new FileCacheReader(new AnnotationReader(), $this->cacheDir);
  $this
    ->assertTrue(is_dir($this->cacheDir));
}