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-30 12:52:00 +00:00
parent 40f1801c4b
commit 46a3753424
+1 -1
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;
}
}