diff --git a/composer.json b/composer.json index 6f09e1d..194f8be 100644 --- a/composer.json +++ b/composer.json @@ -23,6 +23,7 @@ "Faissaloux\\PestInside\\": "src/" }, "files": [ + "src/helpers.php", "src/Autoload.php" ] }, diff --git a/src/Expectation.php b/src/Expectation.php index e96583a..e3cf917 100644 --- a/src/Expectation.php +++ b/src/Expectation.php @@ -14,6 +14,7 @@ function (): PestExpectation { if ($files = scandir($files[0])) { $files = array_diff($files, ['.', '..']); + $files = array_filter($files, 'isPhp'); $files = array_map(fn (string $file): string => $directory.DIRECTORY_SEPARATOR.$file, $files); } diff --git a/src/helpers.php b/src/helpers.php new file mode 100644 index 0000000..d6a0fbf --- /dev/null +++ b/src/helpers.php @@ -0,0 +1,8 @@ +