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:
parent
ab76df29c4
commit
02bf4f2960
1 changed files with 7 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue