@@ -39,21 +39,21 @@ protected function setUp(): void
39
39
*/
40
40
public function testExtract ($ property , ?array $ type , $ shortDescription , $ longDescription )
41
41
{
42
- $ this ->assertEquals ($ type , $ this ->extractor ->getTypes (' Symfony\Component\PropertyInfo\Tests\Fixtures\ Dummy' , $ property ));
43
- $ this ->assertSame ($ shortDescription , $ this ->extractor ->getShortDescription (' Symfony\Component\PropertyInfo\Tests\Fixtures\ Dummy' , $ property ));
44
- $ this ->assertSame ($ longDescription , $ this ->extractor ->getLongDescription (' Symfony\Component\PropertyInfo\Tests\Fixtures\ Dummy' , $ property ));
42
+ $ this ->assertEquals ($ type , $ this ->extractor ->getTypes (Dummy::class , $ property ));
43
+ $ this ->assertSame ($ shortDescription , $ this ->extractor ->getShortDescription (Dummy::class , $ property ));
44
+ $ this ->assertSame ($ longDescription , $ this ->extractor ->getLongDescription (Dummy::class , $ property ));
45
45
}
46
46
47
47
public function testGetDocBlock ()
48
48
{
49
- $ docBlock = $ this ->extractor ->getDocBlock (' Symfony\Component\PropertyInfo\Tests\Fixtures\ Dummy' , 'g ' );
49
+ $ docBlock = $ this ->extractor ->getDocBlock (Dummy::class , 'g ' );
50
50
$ this ->assertInstanceOf (DocBlock::class, $ docBlock );
51
51
$ this ->assertSame ('Nullable array. ' , $ docBlock ->getSummary ());
52
52
53
- $ docBlock = $ this ->extractor ->getDocBlock (' Symfony\Component\PropertyInfo\Tests\Fixtures\ Dummy' , 'noDocBlock; ' );
53
+ $ docBlock = $ this ->extractor ->getDocBlock (Dummy::class , 'noDocBlock; ' );
54
54
$ this ->assertNull ($ docBlock );
55
55
56
- $ docBlock = $ this ->extractor ->getDocBlock (' Symfony\Component\PropertyInfo\Tests\Fixtures\ Dummy' , 'notAvailable ' );
56
+ $ docBlock = $ this ->extractor ->getDocBlock (Dummy::class , 'notAvailable ' );
57
57
$ this ->assertNull ($ docBlock );
58
58
}
59
59
@@ -89,7 +89,7 @@ public function testExtractTypesWithNoPrefixes($property, array $type = null)
89
89
{
90
90
$ noPrefixExtractor = new PhpDocExtractor (null , [], [], []);
91
91
92
- $ this ->assertEquals ($ type , $ noPrefixExtractor ->getTypes (' Symfony\Component\PropertyInfo\Tests\Fixtures\ Dummy' , $ property ));
92
+ $ this ->assertEquals ($ type , $ noPrefixExtractor ->getTypes (Dummy::class , $ property ));
93
93
}
94
94
95
95
public static function typesProvider ()
@@ -211,7 +211,7 @@ public function testExtractTypesWithCustomPrefixes($property, array $type = null
211
211
{
212
212
$ customExtractor = new PhpDocExtractor (null , ['add ' , 'remove ' ], ['is ' , 'can ' ]);
213
213
214
- $ this ->assertEquals ($ type , $ customExtractor ->getTypes (' Symfony\Component\PropertyInfo\Tests\Fixtures\ Dummy' , $ property ));
214
+ $ this ->assertEquals ($ type , $ customExtractor ->getTypes (Dummy::class , $ property ));
215
215
}
216
216
217
217
public static function typesWithCustomPrefixesProvider ()
0 commit comments