diff --git a/tests/ViewTest.php b/tests/ViewTest.php index 69f1f61..e855fff 100644 --- a/tests/ViewTest.php +++ b/tests/ViewTest.php @@ -400,6 +400,6 @@ class ViewTest extends TestCase private static function removeIndentation(string $subject): string { - return str_replace(' ', '', $subject); + return preg_replace('/\s{2,}/', '', $subject); } }