Add ProcessRunnerTest

This commit is contained in:
2026-06-06 10:50:51 +02:00
parent 0eb94ccf55
commit 79afce445b

View File

@@ -0,0 +1,19 @@
<?php
declare(strict_types=1);
namespace Scandalous\Tests\Process;
use PHPUnit\Framework\TestCase;
use Scandalous\Process\ProcessRunner;
final class ProcessRunnerTest extends TestCase
{
public function testRunExecutesCommandAndReturnsOutput(): void
{
$runner = new ProcessRunner();
$output = $runner->run(['php', '-r', 'echo "hello world";']);
$this->assertSame('hello world', $output);
}
}