Skip to content

Commit

Permalink
Merge pull request #163 from carusogabriel/refactoring-tests
Browse files Browse the repository at this point in the history
Use assertDirectoryExists and assertDirectoryNotExists
  • Loading branch information
alcaeus authored Dec 5, 2017
2 parents e221bb1 + 76c0669 commit e227dfe
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ public function testAttemptToCreateAnnotationCacheDir()
{
$this->cacheDir = sys_get_temp_dir() . '/not_existed_dir_' . uniqid('', true);

self::assertFalse(is_dir($this->cacheDir));
self::assertDirectoryNotExists($this->cacheDir);

new FileCacheReader(new AnnotationReader(), $this->cacheDir);

self::assertTrue(is_dir($this->cacheDir));
self::assertDirectoryExists($this->cacheDir);
}
}
}

0 comments on commit e227dfe

Please sign in to comment.