Skip to content

Commit

Permalink
Change class name in two eval'ed snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-tech committed Sep 5, 2024
1 parent 17922f8 commit 2ded734
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/Doctrine/Tests/Common/Annotations/CachedReaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public function testReaderDoesNotCacheIfFileDoesNotExistSoLastModificationCannot
/**
* @\Doctrine\Tests\Common\Annotations\Fixtures\AnnotationTargetClass("Some data")
*/
class PsrEvalClass {
class CachedEvalClass {
}
EOS;
Expand All @@ -248,7 +248,7 @@ class PsrEvalClass {

$reader = new CachedReader(new AnnotationReader(), $cache, true);
// @phpstan-ignore class.notFound
$readAnnotations = $reader->getClassAnnotations(new ReflectionClass(PsrEvalClass::class));
$readAnnotations = $reader->getClassAnnotations(new ReflectionClass(CachedEvalClass::class));

self::assertCount(1, $readAnnotations);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public function testReaderDoesNotCacheIfFileDoesNotExistSoLastModificationCannot
/**
* @\Doctrine\Tests\Common\Annotations\Fixtures\AnnotationTargetClass("Some data")
*/
class PsrEvalClass {
class PsrCachedEvalClass {
}
EOS;
Expand All @@ -237,7 +237,7 @@ class PsrEvalClass {

$reader = new PsrCachedReader(new AnnotationReader(), new ArrayAdapter(), true);
// @phpstan-ignore class.notFound
$readAnnotations = $reader->getClassAnnotations(new ReflectionClass(PsrEvalClass::class));
$readAnnotations = $reader->getClassAnnotations(new ReflectionClass(PsrCachedEvalClass::class));

self::assertCount(1, $readAnnotations);
}
Expand Down

0 comments on commit 2ded734

Please sign in to comment.