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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user