Framework/src/Testing/CodeceptionRunner.php
Funky Waddle 54303282d7
Some checks failed
CI / PHP ${{ matrix.php }} (8.1) (push) Has been cancelled
CI / PHP ${{ matrix.php }} (8.2) (push) Has been cancelled
CI / PHP ${{ matrix.php }} (8.3) (push) Has been cancelled
Too many things
2026-01-06 11:02:05 -06:00

21 lines
435 B
PHP

<?php
declare(strict_types=1);
namespace Phred\Testing;
use Phred\Testing\Contracts\TestRunnerInterface;
final class CodeceptionRunner implements TestRunnerInterface
{
public function run(?string $suite = null): int
{
$command = 'vendor/bin/codecept run';
if ($suite) {
$command .= ' ' . escapeshellarg($suite);
}
passthru($command, $exitCode);
return $exitCode;
}
}