Skip to content

Commit

Permalink
Remove fragile assertions (#10239)
Browse files Browse the repository at this point in the history
RuntimePublicReflectionProperty has been deprecated in favor of
RuntimeReflectionProperty.

Let us use a more robust assertion.
  • Loading branch information
greg0ire committed Nov 20, 2022
1 parent fc3201b commit a5a6cc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Doctrine/Tests/ORM/Functional/ValueObjectsTest.php
Expand Up @@ -19,8 +19,8 @@
use Doctrine\ORM\Mapping\MappingException;
use Doctrine\ORM\Mapping\ReflectionEmbeddedProperty;
use Doctrine\ORM\Query\QueryException;
use Doctrine\Persistence\Reflection\RuntimePublicReflectionProperty;
use Doctrine\Tests\OrmFunctionalTestCase;
use ReflectionProperty;

use function class_exists;
use function sprintf;
Expand Down Expand Up @@ -53,7 +53,7 @@ public function testMetadataHasReflectionEmbeddablesAccessible(): void
);
} else {
self::assertInstanceOf(
RuntimePublicReflectionProperty::class,
ReflectionProperty::class,
$classMetadata->getReflectionProperty('address')
);
}
Expand Down

0 comments on commit a5a6cc6

Please sign in to comment.