From 9dc648978e4276f2bfd37a076a52e3bd9394777f Mon Sep 17 00:00:00 2001 From: Zachary Craig Date: Sat, 13 Jan 2024 13:46:48 -0500 Subject: [PATCH] [1.x] [#651] Don't do anything if no phpunit files are present (#652) * [#651] Don't do anything if no phpunit files are present * Update InteractsWithDockerComposeServices.php --------- Co-authored-by: Taylor Otwell --- src/Console/Concerns/InteractsWithDockerComposeServices.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Console/Concerns/InteractsWithDockerComposeServices.php b/src/Console/Concerns/InteractsWithDockerComposeServices.php index 10974980..d0821c67 100644 --- a/src/Console/Concerns/InteractsWithDockerComposeServices.php +++ b/src/Console/Concerns/InteractsWithDockerComposeServices.php @@ -170,6 +170,10 @@ protected function configurePhpUnit() { if (! file_exists($path = $this->laravel->basePath('phpunit.xml'))) { $path = $this->laravel->basePath('phpunit.xml.dist'); + + if (! file_exists($path)) { + return; + } } $phpunit = file_get_contents($path);