diff --git a/core/modules/simpletest/src/TestDiscovery.php b/core/modules/simpletest/src/TestDiscovery.php index bbee5e3694..bbddd639f0 100644 --- a/core/modules/simpletest/src/TestDiscovery.php +++ b/core/modules/simpletest/src/TestDiscovery.php @@ -347,7 +347,7 @@ public static function getTestInfo($classname, $doc_comment = NULL) { foreach ($matches[1] as $key => $annotation) { // For historical reasons, there is a single-value 'group' result key // and a 'groups' key as an array. - if ($annotation == 'group') { + if ($annotation === 'group') { $annotations['groups'][] = $matches[2][$key]; } if (!empty($annotations[$annotation])) { diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh old mode 100644 new mode 100755 index 4e438057d3..15e8485379 --- a/core/scripts/run-tests.sh +++ b/core/scripts/run-tests.sh @@ -88,7 +88,7 @@ $list = []; foreach($groups as $group => $tests) { foreach (array_keys($tests) as $class) { - if (!in_array($class, $classes)) { + if (!in_array($class, $classes, TRUE)) { $list[$group][] = $class; $classes[] = $class; }