mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
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:
parent
40f1801c4b
commit
46a3753424
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ abstract class base_testcase extends PHPUnit_Framework_TestCase {
|
||||||
}
|
}
|
||||||
} // match by exact string
|
} // match by exact string
|
||||||
else {
|
else {
|
||||||
if ($node->getAttribute($name) != $value) {
|
if ($node->getAttribute($name) !== (string) $value) {
|
||||||
$invalid = true;
|
$invalid = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue