feat(accounting): separate physical storage and SDL with source-age validation
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
namespace Belevo\EnelixEMS\Tests;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
final class NetzfahrplanV4BilanzierungTest extends TestCase
|
||||
{
|
||||
public function testIsolatedAccountingChecks(): void
|
||||
{
|
||||
$pipes=[];
|
||||
$p=proc_open([PHP_BINARY,__DIR__.'/V4Accounting/checks.php'],[0=>['pipe','r'],1=>['pipe','w'],2=>['pipe','w']],$pipes);
|
||||
self::assertIsResource($p);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($p),$out.$err);self::assertSame('',$err);
|
||||
self::assertStringContainsString('TOTAL 34 checks passed',$out);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user