File tree 2 files changed +12
-20
lines changed
2 files changed +12
-20
lines changed Original file line number Diff line number Diff line change 16
16
}
17
17
],
18
18
"require" : {
19
- "php" : " ^7.4|^8.0" ,
20
- "phplrt/source-contracts" : " ^3.6" ,
21
- "symfony/deprecation-contracts" : " ^2.5|^3.0" ,
22
- "symfony/polyfill-php80" : " ^1.29"
19
+ "php" : " ^8.1" ,
20
+ "phplrt/source-contracts" : " ^4.0" ,
21
+ "symfony/deprecation-contracts" : " ^2.5|^3.0"
23
22
},
24
23
"autoload" : {
25
24
"psr-4" : {
26
25
"Phplrt\\ Source\\ " : " src"
27
26
}
28
27
},
29
28
"require-dev" : {
30
- "phpunit/phpunit" : " ^9.6|^10 .0" ,
29
+ "phpunit/phpunit" : " ^10.5|^11 .0" ,
31
30
"psr/http-message" : " ^1.0|^2.0" ,
32
31
"httpsoft/http-message" : " ^1.1" ,
33
32
"phpstan/extension-installer" : " ^1.4" ,
40
39
}
41
40
},
42
41
"provide" : {
43
- "phplrt/source-contracts-implementation" : " ^3.6 "
42
+ "phplrt/source-contracts-implementation" : " ^4.0 "
44
43
},
45
44
"extra" : {
46
45
"branch-alias" : {
47
- "dev-master" : " 3 .x-dev" ,
48
- "dev-main" : " 3 .x-dev"
46
+ "dev-master" : " 4 .x-dev" ,
47
+ "dev-main" : " 4 .x-dev"
49
48
}
50
49
},
51
50
"config" : {
Original file line number Diff line number Diff line change 6
6
7
7
use Phplrt \Contracts \Source \FileInterface ;
8
8
use Phplrt \Contracts \Source \ReadableInterface ;
9
+ use PHPUnit \Framework \Attributes \DataProvider ;
9
10
10
11
class FileTest extends TestCase
11
12
{
12
- /**
13
- * @dataProvider provider
14
- */
13
+ #[DataProvider('provider ' )]
15
14
public function testSources (\Closure $ factory ): void
16
15
{
17
16
$ readable = $ factory ();
18
17
19
18
$ this ->assertSame ($ this ->getSources (), $ readable ->getContents ());
20
19
}
21
20
22
- /**
23
- * @dataProvider provider
24
- */
21
+ #[DataProvider('provider ' )]
25
22
public function testCloneable (\Closure $ factory ): void
26
23
{
27
24
$ readable = $ factory ();
28
25
29
26
$ this ->assertSame ($ this ->getSources (), (clone $ readable )->getContents ());
30
27
}
31
28
32
- /**
33
- * @dataProvider provider
34
- */
29
+ #[DataProvider('provider ' )]
35
30
public function testSerializable (\Closure $ factory ): void
36
31
{
37
32
$ readable = $ factory ();
@@ -48,9 +43,7 @@ public static function filesDataProvider(): array
48
43
return \array_filter (static ::provider (), $ filter );
49
44
}
50
45
51
- /**
52
- * @dataProvider filesDataProvider
53
- */
46
+ #[DataProvider('filesDataProvider ' )]
54
47
public function testPathname (\Closure $ factory ): void
55
48
{
56
49
/** @var ReadableInterface $readable */
You can’t perform that action at this time.
0 commit comments