Skip to content

Commit

Permalink
[1.x] [#651] Don't do anything if no phpunit files are present (#652)
Browse files Browse the repository at this point in the history
* [#651] Don't do anything if no phpunit files are present

* Update InteractsWithDockerComposeServices.php

---------

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
zack6849 and taylorotwell authored Jan 13, 2024
1 parent f317d37 commit 9dc6489
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Console/Concerns/InteractsWithDockerComposeServices.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9dc6489

Please sign in to comment.