<?php

declare(strict_types=1);

$source = file_get_contents(__DIR__ . '/archive_failed_prepare.php');
if (!is_string($source)) throw new RuntimeException('Archive source unavailable');
$expected = '$count = static function (PDO $pdo, string $sql, array $args = []): int {';
if (substr_count($source, $expected) !== 1) {
    throw new RuntimeException('Archive count helper must accept no-bind SQL');
}
echo 'ArchiveCountSignatureTest pass assertions=1' . PHP_EOL;
