diff --git a/src/Bootstrappers/BootFiles.php b/src/Bootstrappers/BootFiles.php index 411fd007..2017a796 100644 --- a/src/Bootstrappers/BootFiles.php +++ b/src/Bootstrappers/BootFiles.php @@ -78,6 +78,8 @@ final class BootFiles implements Bootstrapper private function bootDatasets(string $testsPath): void { + assert(strlen($testsPath) > 0); + $files = (new PhpUnitFileIterator)->getFilesAsArray($testsPath, '.php'); foreach ($files as $file) { diff --git a/src/Exceptions/NoDirtyTestsFound.php b/src/Exceptions/NoDirtyTestsFound.php index 8c5ef1cb..58f2e7b5 100644 --- a/src/Exceptions/NoDirtyTestsFound.php +++ b/src/Exceptions/NoDirtyTestsFound.php @@ -14,7 +14,7 @@ use Symfony\Component\Console\Output\OutputInterface; /** * @internal */ -final class NoDirtyTestsFound extends InvalidArgumentException implements ExceptionInterface, RenderlessEditor, RenderlessTrace, Panicable +final class NoDirtyTestsFound extends InvalidArgumentException implements ExceptionInterface, Panicable, RenderlessEditor, RenderlessTrace { /** * Renders the panic on the given output. diff --git a/src/Pest.php b/src/Pest.php index aa9c80c1..0563a94b 100644 --- a/src/Pest.php +++ b/src/Pest.php @@ -6,7 +6,7 @@ namespace Pest; function version(): string { - return '2.16.1'; + return '2.16.2'; } function testDirectory(string $file = ''): string diff --git a/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap b/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap index 721cb3e0..19f47ee2 100644 --- a/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap +++ b/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap @@ -1,5 +1,5 @@ - Pest Testing Framework 2.16.1. + Pest Testing Framework 2.16.2. USAGE: pest [options] diff --git a/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap b/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap index a2c7fd28..5b8d50ad 100644 --- a/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap +++ b/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap @@ -1,3 +1,3 @@ - Pest Testing Framework 2.16.1. + Pest Testing Framework 2.16.2.