@@ -52,7 +52,7 @@ public function testDoesNotFindAnonymousClass(): void
52
52
53
53
$ this ->assertSame ('method ' , $ method ->name ());
54
54
$ this ->assertSame ('method(): string ' , $ method ->signature ());
55
- $ this ->assertSame (' public ' , $ method ->visibility ());
55
+ $ this ->assertSame (Visibility::Public , $ method ->visibility ());
56
56
$ this ->assertSame (6 , $ method ->startLine ());
57
57
$ this ->assertSame (16 , $ method ->endLine ());
58
58
$ this ->assertSame (1 , $ method ->cyclomaticComplexity ());
@@ -200,7 +200,7 @@ public function testDetailsAboutExtendedClassesImplementedInterfacesAndUsedTrait
200
200
$ this ->assertSame ('four ' , $ method ->name ());
201
201
$ this ->assertSame (21 , $ method ->startLine ());
202
202
$ this ->assertSame (23 , $ method ->endLine ());
203
- $ this ->assertSame (' public ' , $ method ->visibility ());
203
+ $ this ->assertSame (Visibility::Public , $ method ->visibility ());
204
204
$ this ->assertSame ('four(): void ' , $ method ->signature ());
205
205
$ this ->assertSame (1 , $ method ->cyclomaticComplexity ());
206
206
@@ -233,7 +233,7 @@ public function testDetailsAboutExtendedClassesImplementedInterfacesAndUsedTrait
233
233
$ this ->assertSame ('five ' , $ method ->name ());
234
234
$ this ->assertSame (28 , $ method ->startLine ());
235
235
$ this ->assertSame (30 , $ method ->endLine ());
236
- $ this ->assertSame (' public ' , $ method ->visibility ());
236
+ $ this ->assertSame (Visibility::Public , $ method ->visibility ());
237
237
$ this ->assertSame ('five(A $a, B $b): void ' , $ method ->signature ());
238
238
$ this ->assertSame (1 , $ method ->cyclomaticComplexity ());
239
239
0 commit comments