From 2ded734a6ca2f8328b686f99ada97bfdaacc015f Mon Sep 17 00:00:00 2001 From: andrey-tech Date: Thu, 5 Sep 2024 11:21:51 +0300 Subject: [PATCH] Change class name in two eval'ed snippets --- tests/Doctrine/Tests/Common/Annotations/CachedReaderTest.php | 4 ++-- .../Doctrine/Tests/Common/Annotations/PsrCachedReaderTest.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Doctrine/Tests/Common/Annotations/CachedReaderTest.php b/tests/Doctrine/Tests/Common/Annotations/CachedReaderTest.php index f9e33d222..14a1643ce 100644 --- a/tests/Doctrine/Tests/Common/Annotations/CachedReaderTest.php +++ b/tests/Doctrine/Tests/Common/Annotations/CachedReaderTest.php @@ -236,7 +236,7 @@ public function testReaderDoesNotCacheIfFileDoesNotExistSoLastModificationCannot /** * @\Doctrine\Tests\Common\Annotations\Fixtures\AnnotationTargetClass("Some data") */ -class PsrEvalClass { +class CachedEvalClass { } EOS; @@ -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); } diff --git a/tests/Doctrine/Tests/Common/Annotations/PsrCachedReaderTest.php b/tests/Doctrine/Tests/Common/Annotations/PsrCachedReaderTest.php index 0f20285b1..ca9a259e2 100644 --- a/tests/Doctrine/Tests/Common/Annotations/PsrCachedReaderTest.php +++ b/tests/Doctrine/Tests/Common/Annotations/PsrCachedReaderTest.php @@ -228,7 +228,7 @@ public function testReaderDoesNotCacheIfFileDoesNotExistSoLastModificationCannot /** * @\Doctrine\Tests\Common\Annotations\Fixtures\AnnotationTargetClass("Some data") */ -class PsrEvalClass { +class PsrCachedEvalClass { } EOS; @@ -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); }