From a405da2152ff5f1f948d4c8cfc820430ddac4e1c Mon Sep 17 00:00:00 2001 From: Zachary Craig Date: Fri, 12 Jan 2024 18:01:41 -0500 Subject: [PATCH 1/2] [#651] Don't do anything if no phpunit files are present --- src/Console/Concerns/InteractsWithDockerComposeServices.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Console/Concerns/InteractsWithDockerComposeServices.php b/src/Console/Concerns/InteractsWithDockerComposeServices.php index 10974980..a79fae4c 100644 --- a/src/Console/Concerns/InteractsWithDockerComposeServices.php +++ b/src/Console/Concerns/InteractsWithDockerComposeServices.php @@ -170,6 +170,9 @@ 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); From 3182ea977d927b218b1f7121074b70de9c7c14e4 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 13 Jan 2024 12:45:43 -0600 Subject: [PATCH 2/2] Update InteractsWithDockerComposeServices.php --- src/Console/Concerns/InteractsWithDockerComposeServices.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Console/Concerns/InteractsWithDockerComposeServices.php b/src/Console/Concerns/InteractsWithDockerComposeServices.php index a79fae4c..d0821c67 100644 --- a/src/Console/Concerns/InteractsWithDockerComposeServices.php +++ b/src/Console/Concerns/InteractsWithDockerComposeServices.php @@ -170,7 +170,8 @@ protected function configurePhpUnit() { if (! file_exists($path = $this->laravel->basePath('phpunit.xml'))) { $path = $this->laravel->basePath('phpunit.xml.dist'); - if(! file_exists($path)) { + + if (! file_exists($path)) { return; } }