mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
19 lines
490 B
PHP
19 lines
490 B
PHP
<?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];
|
|
}
|
|
});
|