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
+7 -7
View File
@@ -1,22 +1,22 @@
<?php
function addUser()
function addUser(): void
{
test()->user = 'nuno';
}
it('can set/get properties on $this', function () {
it('can set/get properties on $this', function (): void {
addUser();
expect($this->user)->toBe('nuno');
});
it('gets null if property do not exist', function () {
expect(test()->wqdwqdqw)->toBe(null);
it('gets null if property do not exist', function (): void {
expect(test()->wqdwqdqw)->toBeNull();
});
class User
{
public function getName()
public function getName(): string
{
return 'nuno';
}
@@ -32,12 +32,12 @@ function mockUser()
return $mock;
}
it('allows to call underlying protected/private methods', function () {
it('allows to call underlying protected/private methods', function (): void {
$user = mockUser();
expect($user->getName())->toBe('maduro');
});
it('throws error if method do not exist', function () {
it('throws error if method do not exist', function (): void {
test()->foo();
})->throws(ReflectionException::class, 'Call to undefined method PHPUnit\Framework\TestCase::foo()');