feat(manager): receive and preview V4 shadow plans without dispatch

This commit is contained in:
ENELIX Agent
2026-10-02 13:01:04 +00:00
parent fc4c4632ce
commit b5c1fa6be2
9 changed files with 847 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
namespace Belevo\EnelixEMS\Tests;
use PHPUnit\Framework\TestCase;
final class NetzfahrplanV4EmpfangTest extends TestCase
{
/** @dataProvider scripts */
public function testIsolatedReceiverChecks(string $script): void
{
$pipes = [];
$process = proc_open([PHP_BINARY, __DIR__ . '/V4Receiver/' . $script],
[0 => ['pipe', 'r'], 1 => ['pipe', 'w'], 2 => ['pipe', 'w']], $pipes);
self::assertIsResource($process);
fclose($pipes[0]);
$out = stream_get_contents($pipes[1]);$err = stream_get_contents($pipes[2]);
fclose($pipes[1]);fclose($pipes[2]);
self::assertSame(0, proc_close($process), $out . $err);
self::assertStringContainsString('Total:', $out);
}
public function scripts(): array
{
return [['protocol_checks.php'], ['receiver_checks.php']];
}
}