Skip to content
  • Eloy Lafuente's avatar
    MDL-72329 phpunit: Avoid === on floats and raw reserved word · e4f33b83
    Eloy Lafuente authored
    In general it's a bad idea to compare floats with ===,
    because depending of different systems precision, can
    come to mismatches after certain decimal position.
    So we replace them by:
    - assetIsFloat() : to verify the type.
    - assertEqualsWithDelta() : to compare values with some delta allowed.
    Also, "raw" is Oracle reserved word, so renaming to "someraw" in tests.