Commit Graph

10 Commits

Author SHA1 Message Date
Christoph Reiter 0b8a270bbb tests: port assertEquals() with delta to assertEqualsWithDelta()
assertEquals() in phpunit 9.5 no longer takes a delta parameter
and has assertEqualsWithDelta() as a replacement. This means
float get compared without a delta atm, and a recent phpunit
release (9.5.25) has made float comparisons stricter resulting in
test suite errors such as:

1) SubtaskTimeTrackingModelTest::testCalculateSubtaskTime
Total spent
Failed asserting that 3.3000000000000003 matches expected 3.3.
tests/units/Model/SubtaskTimeTrackingModelTest.php:186

This replaces all assertEquals() calls that pass a delta value
with assertEqualsWithDelta().
2022-10-10 18:57:22 -07:00
Frédéric Guillot f5bb55bdb8
PHP 8 Compatibility 2022-02-05 11:49:03 -08:00
Frederic Guillot 14713b0ec7 Rename all models 2016-05-28 19:48:22 -04:00
Frederic Guillot a2e5d022e5 Clean up unit tests 2016-05-24 22:41:21 -04:00
Frederic Guillot 8768a4e369 Fixes cycle time calculation when the start date is defined in the future 2016-03-22 20:44:15 -04:00
Frederic Guillot abe9371f32 Improve test case to avoid false positive with the CI 2016-03-04 16:06:34 -05:00
Frederic Guillot 6ef83d0e05 Add unit test for transition model 2016-02-29 22:40:26 -05:00
Frederic Guillot c603cb5949 Simplify class ProjectDailyStats 2016-01-16 19:46:23 -05:00
Frederic Guillot 2c80a90a6f Add Bosnian translation (pull-request #1470) 2015-11-22 12:53:18 -05:00
Frederic Guillot 0a7370b9e5 Remove workaround for 'INSERT ON DUPLICATE KEY UPDATE...' 2015-11-21 18:41:15 -05:00