[PR #7449] Fix build: Disable test assertion upon a non-mockable ClassMetadataFactory method #10497

Open
opened 2026-01-22 16:07:45 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/7449

State: closed
Merged: No


ClassMetadataFactory::addDefaultDiscriminatorMap() is a private method and as such is not mockable. Older PHPUnit versions ignored this.

This is a BC break in PHPUnit 7.4: https://github.com/sebastianbergmann/phpunit/blob/7.4.0/ChangeLog-7.4.md#740---2018-10-05

**Original Pull Request:** https://github.com/doctrine/orm/pull/7449 **State:** closed **Merged:** No --- `ClassMetadataFactory::addDefaultDiscriminatorMap()` is a private method and as such is not mockable. Older PHPUnit versions ignored this. This is a BC break in PHPUnit 7.4: https://github.com/sebastianbergmann/phpunit/blob/7.4.0/ChangeLog-7.4.md#740---2018-10-05
admin added the pull-request label 2026-01-22 16:07:45 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#10497