fix: package lock fingerprint

This commit is contained in:
nuno maduro
2026-07-18 01:10:01 +01:00
parent 9e79e491e2
commit 820fa08313
237 changed files with 2409 additions and 2100 deletions
+11 -9
View File
@@ -1,26 +1,28 @@
<?php
declare(strict_types=1);
use PHPUnit\Framework\ExpectationFailedException;
$resource = tmpfile();
afterAll(function () use ($resource) {
afterAll(function () use ($resource): void {
fclose($resource);
});
test('pass', function () use ($resource) {
expect($resource)->toBeResource();
expect(null)->not->toBeResource();
test('pass', function () use ($resource): void {
expect($resource)->toBeResource()
->and(null)->not->toBeResource();
});
test('failures', function () {
expect(null)->toBeResource();
test('failures', function (): void {
expect()->toBeResource();
})->throws(ExpectationFailedException::class);
test('failures with custom message', function () {
expect(null)->toBeResource('oh no!');
test('failures with custom message', function (): void {
expect()->toBeResource('oh no!');
})->throws(ExpectationFailedException::class, 'oh no!');
test('not failures', function () use ($resource) {
test('not failures', function () use ($resource): void {
expect($resource)->not->toBeResource();
})->throws(ExpectationFailedException::class);