Closed rosalieper closed 4 years ago
fails due to dependency on outdated DataValue/DataValue
LGTM.
One difference I noticed running the tests locally on master and then this branch is there is now a Warning about the following.
1) Warning
The data provider specified for ValueFormatters\Test\QuantityHtmlFormatterTest::testGivenHtmlCharacters_formatEscapesHtmlCharacters is invalid.
PHPUnit\Framework\MockObject\RuntimeException: Trying to configure method "getUncertaintyMargin" which cannot be configured because it does not exist, has not been specified, is final, or is static
/home/toan/Documents/dev/Number/tests/ValueFormatters/QuantityHtmlFormatterTest.php:75
/home/toan/Documents/dev/Number/tests/ValueFormatters/QuantityHtmlFormatterTest.php:171
LGTM.
One difference I noticed running the tests locally on master and then this branch is there is now a Warning about the following.
1) Warning The data provider specified for ValueFormatters\Test\QuantityHtmlFormatterTest::testGivenHtmlCharacters_formatEscapesHtmlCharacters is invalid. PHPUnit\Framework\MockObject\RuntimeException: Trying to configure method "getUncertaintyMargin" which cannot be configured because it does not exist, has not been specified, is final, or is static /home/toan/Documents/dev/Number/tests/ValueFormatters/QuantityHtmlFormatterTest.php:75 /home/toan/Documents/dev/Number/tests/ValueFormatters/QuantityHtmlFormatterTest.php:171
warning fixed.
getAmount()->getValue
togetAmount()->getValueFloat
in tests. In this case comparing float values seem more reasonable than comparing stringyfied decimals.