Tests failing in February (QueryDqlFunctionTest::testDateAdd with "month" dataset) #5866

Closed
opened 2026-01-22 15:20:34 +01:00 by admin · 0 comments
Owner

Originally created by @Majkl578 on GitHub (Feb 1, 2018).

https://travis-ci.org/doctrine/doctrine2/jobs/336054843#L616

1) Doctrine\Tests\ORM\Functional\QueryDqlFunctionTest::testDateAdd with data set "month" ('month', 1, 2592000, 172800) Failed asserting that 2378089 matches expected 2592000.

The "month" dataset for QueryDqlFunctionTest::testDateAdd works with assumption that month has 30 days +- delta 2 days, but in February the difference is larger (2378089s is ~27.52 days).
https://github.com/doctrine/doctrine2/blame/master/tests/Doctrine/Tests/ORM/Functional/QueryDqlFunctionTest.php#L351

Test added in #6742.
Applies to 2.6 & master.

/cc @lcobucci

Originally created by @Majkl578 on GitHub (Feb 1, 2018). https://travis-ci.org/doctrine/doctrine2/jobs/336054843#L616 ``` 1) Doctrine\Tests\ORM\Functional\QueryDqlFunctionTest::testDateAdd with data set "month" ('month', 1, 2592000, 172800) Failed asserting that 2378089 matches expected 2592000. ``` The "month" dataset for QueryDqlFunctionTest::testDateAdd works with assumption that month has 30 days +- delta 2 days, but in February the difference is larger (2378089s is ~27.52 days). https://github.com/doctrine/doctrine2/blame/master/tests/Doctrine/Tests/ORM/Functional/QueryDqlFunctionTest.php#L351 Test added in #6742. Applies to 2.6 & master. /cc @lcobucci
admin added the Bug label 2026-01-22 15:20:34 +01:00
admin closed this issue 2026-01-22 15:20:34 +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#5866