]> git.openstreetmap.org Git - nominatim.git/commit
Use assertEqualsWithDelta for float comparisons
authorSimon Will <gorgor@gorgor.de>
Tue, 5 May 2020 21:43:09 +0000 (23:43 +0200)
committerSimon Will <gorgor@gorgor.de>
Tue, 5 May 2020 21:43:09 +0000 (23:43 +0200)
commit14dba3915725e0ff875656f5077945fdb1839017
tree5e059e3b355653887e2f1d3c44130863bc4501de
parent43fd2a7423eccfd1f3662c2046393dfa3e57fbe0
Use assertEqualsWithDelta for float comparisons

PHPUnit 7.3 introduced the functions assertEqualsWithDelta for comparing
floats with a delta. The old four-argument version of assertEquals is
deprecated in PHPUnit 8 and removed in PHPUnit 9.

This commit means that the tests will fail with PHPUnit < 7.3 because
assertEqualsWithDelta is not defined there.
test/php/Nominatim/LibTest.php