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
+8 -6
View File
@@ -1,8 +1,10 @@
<?php
declare(strict_types=1);
use PHPUnit\Framework\ExpectationFailedException;
it('passes', function ($value) {
it('passes', function ($value): void {
expect($value)->toHaveLength(9);
})->with([
'Fortaleza',
@@ -11,22 +13,22 @@ it('passes', function ($value) {
(object) [1, 2, 3, 4, 5, 6, 7, 8, 9],
]);
it('passes with array', function () {
it('passes with array', function (): void {
expect([1, 2, 3])->toHaveLength(3);
});
it('passes with *not*', function () {
it('passes with *not*', function (): void {
expect('')->not->toHaveLength(1);
});
it('properly fails with *not*', function () {
it('properly fails with *not*', function (): void {
expect('pest')->not->toHaveLength(4, 'oh no!');
})->throws(ExpectationFailedException::class, 'oh no!');
it('fails', function () {
it('fails', function (): void {
expect([1, 1.5, true, null])->toHaveLength(1);
})->throws(ExpectationFailedException::class);
it('fails with message', function () {
it('fails with message', function (): void {
expect([1, 1.5, true, null])->toHaveLength(1, 'oh no!');
})->throws(ExpectationFailedException::class, 'oh no!');