[PR #10433] Make sure tests from #7837 are actually run #12355

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

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

State: closed
Merged: Yes


I noticed that when I remove this line

98e557b68e/lib/Doctrine/ORM/Tools/Pagination/Paginator.php (L169)

added in #7837 the corresponding tests still pass.

This is because the relevant branch in \Doctrine\ORM\Tools\Pagination\Paginator::getIterator() is not reached. A new necessary condition was added briefly afterwards in #7863, and that caused the tests to miss the relevant section.

With the change suggested here, removing the line will make the specific test fail again.

**Original Pull Request:** https://github.com/doctrine/orm/pull/10433 **State:** closed **Merged:** Yes --- I noticed that when I remove this line https://github.com/Ocramius/doctrine2/blob/98e557b68eeecd7f266f1e4628007aed2714026c/lib/Doctrine/ORM/Tools/Pagination/Paginator.php#L169 added in #7837 the corresponding tests still pass. This is because the relevant branch in `\Doctrine\ORM\Tools\Pagination\Paginator::getIterator()` is not reached. A new necessary condition was added briefly afterwards in #7863, and that caused the tests to miss the relevant section. With the change suggested here, removing the line will make the specific test fail again.
admin added the pull-request label 2026-01-22 16:13:47 +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#12355