File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 26
26
"phpstan/phpstan" : " ^1.2" ,
27
27
"phpstan/phpstan-phpunit" : " ^1.0" ,
28
28
"phpstan/phpstan-symfony" : " ^1.0" ,
29
- "phpunit/phpunit" : " ^10.1 " ,
29
+ "phpunit/phpunit" : " ^10.3 " ,
30
30
"riverline/multipart-parser" : " ^2.0" ,
31
31
"slam/phpstan-extensions" : " ^6.0" ,
32
32
"squizlabs/php_codesniffer" : " ^3.7.1" ,
Original file line number Diff line number Diff line change 4
4
5
5
namespace Brainbits \FunctionalTestHelpers \Request ;
6
6
7
+ use PHPUnit \Framework \Attributes \After ;
8
+ use PHPUnit \Framework \Attributes \Before ;
7
9
use PHPUnit \Framework \TestCase ;
8
10
use Symfony \Component \BrowserKit \AbstractBrowser ;
9
11
use Symfony \Component \BrowserKit \Cookie ;
@@ -29,13 +31,13 @@ protected function createToken(): callable
29
31
return static fn () => null ;
30
32
}
31
33
32
- /** @before */
34
+ #[Before]
33
35
protected function setUpRequest (): void
34
36
{
35
37
self ::$ requestClient = static ::createClient ();
36
38
}
37
39
38
- /** @after */
40
+ #[After]
39
41
protected function tearDownRequest (): void
40
42
{
41
43
self ::$ requestClient = null ;
Original file line number Diff line number Diff line change 5
5
namespace Brainbits \FunctionalTestHelpers \Snapshot ;
6
6
7
7
use DOMDocument ;
8
+ use PHPUnit \Framework \Attributes \Before ;
8
9
use PHPUnit \Framework \TestCase ;
9
10
use Symfony \Component \Filesystem \Filesystem ;
10
11
use tidy ;
@@ -40,7 +41,7 @@ trait SnapshotTrait
40
41
/** @var array<string,int> */
41
42
private array $ filenames ;
42
43
43
- /** @before */
44
+ #[Before]
44
45
final protected function setUpSnapshot (): void
45
46
{
46
47
$ this ->filenames = [];
Original file line number Diff line number Diff line change 4
4
5
5
namespace Brainbits \FunctionalTestHelpers \Uuid ;
6
6
7
+ use PHPUnit \Framework \Attributes \Before ;
7
8
use PHPUnit \Framework \TestCase ;
8
9
use Symfony \Component \Uid \NilUuid ;
9
10
use Symfony \Component \Uid \Uuid ;
@@ -21,7 +22,7 @@ trait UuidTrait
21
22
{
22
23
private int $ lastUuidValue ;
23
24
24
- /** @before */
25
+ #[Before]
25
26
final protected function setUpUuidTrait (): void
26
27
{
27
28
$ this ->lastUuidValue = 0 ;
You can’t perform that action at this time.
0 commit comments