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
+9 -9
View File
@@ -6,25 +6,25 @@ $obj = new stdClass;
$obj->foo = 'bar';
$obj->fooNull = null;
test('pass', function () use ($obj) {
expect($obj)->toHaveProperty('foo');
expect($obj)->toHaveProperty('foo', 'bar');
expect($obj)->toHaveProperty('fooNull');
expect($obj)->toHaveProperty('fooNull', null);
test('pass', function () use ($obj): void {
expect($obj)->toHaveProperty('foo')
->toHaveProperty('foo', 'bar')
->toHaveProperty('fooNull')
->toHaveProperty('fooNull', null);
});
test('failures', function () use ($obj) {
test('failures', function () use ($obj): void {
expect($obj)->toHaveProperty('bar');
})->throws(ExpectationFailedException::class);
test('failures with message', function () use ($obj) {
test('failures with message', function () use ($obj): void {
expect($obj)->toHaveProperty(name: 'bar', message: 'oh no!');
})->throws(ExpectationFailedException::class, 'oh no!');
test('failures with message and Any matcher', function () use ($obj) {
test('failures with message and Any matcher', function () use ($obj): void {
expect($obj)->toHaveProperty('bar', expect()->any(), 'oh no!');
})->throws(ExpectationFailedException::class, 'oh no!');
test('not failures', function () use ($obj) {
test('not failures', function () use ($obj): void {
expect($obj)->not->toHaveProperty('foo');
})->throws(ExpectationFailedException::class);