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:58:22 +00:00
parent 14f2ce60a7
commit 48dbf89252
+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;
}
}