File tree 2 files changed +6
-9
lines changed
test/Unit/Document/Fragment
2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ public function testConstructor(): DocumentLink
40
40
return $ link ;
41
41
}
42
42
43
- /** @depends testConstructor */
43
+ #[Depends( ' testConstructor ' )]
44
44
public function testThatCastingALinkToAStringWillYieldItsId (DocumentLink $ link ): void
45
45
{
46
46
self ::assertSame ('id ' , (string ) $ link );
@@ -105,13 +105,13 @@ public function testThatTagsHaveExpectedMembers(DocumentLink $link): void
105
105
$ this ->assertContainsEquals ('b ' , $ link ->tags ());
106
106
}
107
107
108
- /** @depends testConstructor */
108
+ #[Depends( ' testConstructor ' )]
109
109
public function testTheLinkMayHaveAUrlAndItIsNullByDefault (DocumentLink $ link ): void
110
110
{
111
111
self ::assertNull ($ link ->url ());
112
112
}
113
113
114
- /** @depends testConstructorWithUrl */
114
+ #[Depends( ' testConstructorWithUrl ' )]
115
115
public function testThatUrlReturnsTheExpectedValue (DocumentLink $ link ): void
116
116
{
117
117
self ::assertSame ('/some/url ' , $ link ->url ());
Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ public static function documentLinkProvider(): array
333
333
];
334
334
}
335
335
336
- /** @dataProvider documentLinkProvider */
336
+ #[DataProvider( ' documentLinkProvider ' )]
337
337
public function testThatDocumentLinksWithReadyMadeUrlsWillHaveTheExpectedValue (string $ json , string |null $ expect ): void
338
338
{
339
339
$ data = Json::decodeObject ($ json );
@@ -342,11 +342,8 @@ public function testThatDocumentLinksWithReadyMadeUrlsWillHaveTheExpectedValue(s
342
342
self ::assertSame ($ expect , $ link ->url ());
343
343
}
344
344
345
- /**
346
- * @param class-string $expectedType
347
- *
348
- * @dataProvider scalarTypes
349
- */
345
+ /** @param class-string $expectedType */
346
+ #[DataProvider('scalarTypes ' )]
350
347
public function testThatTheFactoryCanBeNewedAndInvoked (string |int |float |bool |null $ value , string $ expectedType ): void
351
348
{
352
349
$ factory = new Factory ();
You can’t perform that action at this time.
0 commit comments