From 45553556d5d2f30096010997ef6aae5287dd3e2f Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Sat, 11 Sep 2021 13:37:56 +0200 Subject: [PATCH] Fix class casing and avoid name collisions --- tests/Doctrine/Tests/ORM/Tools/SchemaValidatorTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/Tools/SchemaValidatorTest.php b/tests/Doctrine/Tests/ORM/Tools/SchemaValidatorTest.php index 5bd224d651c..cbe8738c746 100644 --- a/tests/Doctrine/Tests/ORM/Tools/SchemaValidatorTest.php +++ b/tests/Doctrine/Tests/ORM/Tools/SchemaValidatorTest.php @@ -205,7 +205,7 @@ public function testInvalidAssociationInsideEmbeddable(): void */ public function testMappedSuperclassNotPresentInDiscriminator(): void { - $class1 = $this->em->getClassMetadata(MappedSuperclass::class); + $class1 = $this->em->getClassMetadata(MappedSuperclassEntity::class); $ce = $this->validator->validateClass($class1); $this->assertEquals([], $ce); @@ -213,9 +213,9 @@ public function testMappedSuperclassNotPresentInDiscriminator(): void } /** - * @MappedSuperClass + * @MappedSuperclass */ -abstract class MappedSuperclass extends ParentEntity +abstract class MappedSuperclassEntity extends ParentEntity { } @@ -237,7 +237,7 @@ abstract class ParentEntity /** * @Entity */ -class ChildEntity extends MappedSuperclass +class ChildEntity extends MappedSuperclassEntity { }