mirror of
https://github.com/pnx/neotest-phpunit
synced 2026-06-18 04:10:01 +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
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var mixed $this
|
||||||
|
*/
|
||||||
|
|
||||||
use TestProject\User;
|
use TestProject\User;
|
||||||
|
|
||||||
uses()->group('file group');
|
uses()->group('file group');
|
||||||
|
|
||||||
$makeUser = fn () => new User(18, 'John');
|
$makeUser = fn () => new User(18, 'John');
|
||||||
|
|
||||||
beforeEach(fn () => $this->sut = $makeUser());
|
beforeEach(function () use ($makeUser) {
|
||||||
|
$this->sut = $makeUser();
|
||||||
|
});
|
||||||
|
|
||||||
test('class constructor')
|
test('class constructor')
|
||||||
->expect($makeUser)
|
->expect($makeUser)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue