doctrine / data-fixtures

Doctrine2 ORM Data Fixtures Extensions
http://www.doctrine-project.org
MIT License
2.78k stars 224 forks source link

Backport tests for strict return types #463

Closed GromNaN closed 10 months ago

GromNaN commented 10 months ago

In order to add return types in #459, some tests needs to be updated.

I have a partial understanding of how ReferenceRepository works, with the metadata system.

The setReference method calls getRealClass, which required $metadata->getName(). Which is casted to an empty string when the mock isn't defined for this method call.