Files
Investidor-V2/tests/Support/CleanScannerFixture.php
nala 1106509116
tests / ci (push) Canceled after 0s
vrsao 2
2026-10-08 14:02:01 +02:00

20 lines
803 B
PHP

<?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];
}
}