possible implementation

This commit is contained in:
Adrian Nürnberger
2024-01-28 09:48:37 +01:00
parent 88714598b6
commit 5b630bcdff
4 changed files with 28 additions and 10 deletions

View File

@ -0,0 +1,18 @@
<?php
declare(strict_types=1);
use Pest\Bootstrappers\BootOverrides;
test('versions', function (string $vendorPath, string $expectedHash) {
expect(hash_file('sha256', $vendorPath))->toBe($expectedHash);
})->with(function () {
foreach (BootOverrides::FILES as $hash => $file) {
$path = implode(DIRECTORY_SEPARATOR, [
dirname(__DIR__, 2),
'vendor/phpunit/phpunit/src',
$file,
]);
yield $file => [$path, $hash];
}
});