Skip to content

Commit

Permalink
Try fix guthub test run fail
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkyle committed Aug 10, 2024
1 parent 226fcd2 commit 522b8ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Unit/PhpUnitRunnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Process\Exception\ProcessFailedException;
use Symfony\Component\Process\Process;
use tomkyle\FindRunTest\PhpUnitRunner;
use tomkyle\FindRunTest\TestRunnerInterface;
use tomkyle\FindRunTest\ConfigurableTestRunnerInterface;
Expand Down Expand Up @@ -74,6 +75,7 @@ public function testSuccessExitEvenWhenNoTestFilesFound(): void
public function testExceptionOnProcessFailureWhenInvoked(): void
{
$phpUnitRunner = new PhpUnitRunner(tests: $this->temporaryDirectory->path());
$phpUnitRunner->useColors(Process::isTtySupported());

$this->expectException(\RuntimeException::class);
$this->expectException(ProcessFailedException::class);
Expand All @@ -96,6 +98,7 @@ public function testExceptionOnProcessFailureWhenInvoked(): void
public function testExceptionOnProcessFailureWithRunTestMethod(): void
{
$phpUnitRunner = new PhpUnitRunner(tests: $this->temporaryDirectory->path());
$phpUnitRunner->useColors(Process::isTtySupported());

$this->expectException(\RuntimeException::class);
$this->expectException(ProcessFailedException::class);
Expand Down

0 comments on commit 522b8ef

Please sign in to comment.