vrsao 2
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-08 14:02:01 +02:00
parent bdd766c68a
commit 1106509116
354 changed files with 48275 additions and 24635 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
namespace Tests\Support;
use App\Services\Malware\MalwareScanner;
/** A deterministic QA fixture, never registered in application providers. */
class CleanScannerFixture implements MalwareScanner
{
public function scan(string $path, int $fileSizeBytes, string $storageRoot): array
{
return ['result' => 'clean', 'reason_code' => null, 'engine' => 'QA-Test-Double', 'engine_version' => 'fixture', 'signatures_at' => new \DateTimeImmutable('2026-10-08T00:00:00Z'), 'duration_ms' => 1, 'detail' => null];
}
public function health(): array
{
return ['available' => true, 'engine' => 'QA-Test-Double', 'engine_version' => 'fixture', 'signatures_at' => new \DateTimeImmutable('2026-10-08T00:00:00Z'), 'signature_age_hours' => 0.0, 'reason_code' => null];
}
}