MDL-60139 phpunit: Make assertTag verify attribute values with ===

I had a test that cared about the difference between value="5.0" and value="5".
This commit is contained in:
Tim Hunt 2017-10-26 18:36:35 +01:00
parent 40f1801c4b
commit 46a3753424

View file

@ -242,7 +242,7 @@ abstract class base_testcase extends PHPUnit_Framework_TestCase {
}
} // match by exact string
else {
if ($node->getAttribute($name) != $value) {
if ($node->getAttribute($name) !== (string) $value) {
$invalid = true;
}
}