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
+17 -17
View File
@@ -2,34 +2,34 @@
$runCounter = 0;
test('first', function () use (&$runCounter) {
test('first', function () use (&$runCounter): string {
expect(true)->toBeTrue();
$runCounter++;
return 'first';
});
test('second', function () use (&$runCounter) {
test('second', function () use (&$runCounter): string {
expect(true)->toBeTrue();
$runCounter++;
return 'second';
});
test('depends', function () {
test('depends', function (): void {
expect(func_get_args())->toBe(['first', 'second']);
})->depends('first', 'second');
test('depends with ...params', function (string ...$params) {
test('depends with ...params', function (string ...$params): void {
expect(func_get_args())->toBe($params);
})->depends('first', 'second');
test('depends with defined arguments', function (string $first, string $second) {
expect($first)->toBe('first');
expect($second)->toBe('second');
test('depends with defined arguments', function (string $first, string $second): void {
expect($first)->toBe('first')
->and($second)->toBe('second');
})->depends('first', 'second');
test('depends run test only once', function () use (&$runCounter) {
test('depends run test only once', function () use (&$runCounter): void {
expect($runCounter)->toBe(2);
})->depends('first', 'second');
@@ -37,42 +37,42 @@ test('depends run test only once', function () use (&$runCounter) {
it('asserts true is true')->assertTrue(true);
test('depends works with the correct test name')->assertTrue(true)->depends('it asserts true is true');
describe('describe block', function () {
describe('describe block', function (): void {
$runCounter = 0;
test('first in describe', function () use (&$runCounter) {
test('first in describe', function () use (&$runCounter): void {
$runCounter++;
expect(true)->toBeTrue();
});
test('second in describe', function () use (&$runCounter) {
test('second in describe', function () use (&$runCounter): void {
expect($runCounter)->toBe(1);
$runCounter++;
})->depends('first in describe');
test('third in describe', function () use (&$runCounter) {
test('third in describe', function () use (&$runCounter): void {
expect($runCounter)->toBe(2);
})->depends('second in describe');
describe('nested describe', function () {
describe('nested describe', function (): void {
$runCounter = 0;
test('first in nested describe', function () use (&$runCounter) {
test('first in nested describe', function () use (&$runCounter): void {
$runCounter++;
expect(true)->toBeTrue();
});
test('second in nested describe', function () use (&$runCounter) {
test('second in nested describe', function () use (&$runCounter): void {
expect($runCounter)->toBe(1);
$runCounter++;
})->depends('first in nested describe');
test('third in nested describe', function () use (&$runCounter) {
test('third in nested describe', function () use (&$runCounter): void {
expect($runCounter)->toBe(2);
})->depends('second in nested describe');
});
});
test('depends on test after describe block', function () use (&$runCounter) {
test('depends on test after describe block', function () use (&$runCounter): void {
expect($runCounter)->toBe(2);
})->depends('first', 'second');