diff --git a/src/Core/AbstractTest.php b/src/Core/AbstractTest.php index 7bed67d..983cadc 100644 --- a/src/Core/AbstractTest.php +++ b/src/Core/AbstractTest.php @@ -201,7 +201,7 @@ public function applyFocusPatterns($focusPattern, $skipPattern = null) if ($focusPattern === null) { $this->focused = true; } else { - $this->focused = preg_match($focusPattern, $title); + $this->focused = (bool) preg_match($focusPattern, $title); } }