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
+10 -8
View File
@@ -1,35 +1,37 @@
<?php
declare(strict_types=1);
use PHPUnit\Framework\ExpectationFailedException;
test('passes arrays', function () {
test('passes arrays', function (): void {
expect([1, 2, 42])->toContainEqual('42');
});
test('passes arrays with multiple needles', function () {
test('passes arrays with multiple needles', function (): void {
expect([1, 2, 42])->toContainEqual('42', '2');
});
test('failures', function () {
test('failures', function (): void {
expect([1, 2, 42])->toContainEqual('3');
})->throws(ExpectationFailedException::class);
test('failures with multiple needles (all failing)', function () {
test('failures with multiple needles (all failing)', function (): void {
expect([1, 2, 42])->toContainEqual('3', '4');
})->throws(ExpectationFailedException::class);
test('failures with multiple needles (some failing)', function () {
test('failures with multiple needles (some failing)', function (): void {
expect([1, 2, 42])->toContainEqual('1', '3', '4');
})->throws(ExpectationFailedException::class);
test('not failures', function () {
test('not failures', function (): void {
expect([1, 2, 42])->not->toContainEqual('42');
})->throws(ExpectationFailedException::class);
test('not failures with multiple needles (all failing)', function () {
test('not failures with multiple needles (all failing)', function (): void {
expect([1, 2, 42])->not->toContainEqual('42', '2');
})->throws(ExpectationFailedException::class);
test('not failures with multiple needles (some failing)', function () {
test('not failures with multiple needles (some failing)', function (): void {
expect([1, 2, 42])->not->toContainEqual('42', '1');
})->throws(ExpectationFailedException::class);