1
0
Fork 0
mirror of https://github.com/pnx/neotest-phpunit synced 2026-06-16 03:54:55 +02:00

Add some phpstan annotations

This commit is contained in:
Michael Utz 2022-11-15 15:08:59 +03:00
parent ab76df29c4
commit 02bf4f2960

View file

@ -1,12 +1,18 @@
<?php
/**
* @var mixed $this
*/
use TestProject\User;
uses()->group('file group');
$makeUser = fn () => new User(18, 'John');
beforeEach(fn () => $this->sut = $makeUser());
beforeEach(function () use ($makeUser) {
$this->sut = $makeUser();
});
test('class constructor')
->expect($makeUser)