@@ -52,7 +52,7 @@ public function testDoesNotFindAnonymousClass(): void
5252
5353 $ this ->assertSame ('method ' , $ method ->name ());
5454 $ this ->assertSame ('method(): string ' , $ method ->signature ());
55- $ this ->assertSame (' public ' , $ method ->visibility ());
55+ $ this ->assertSame (Visibility::Public , $ method ->visibility ());
5656 $ this ->assertSame (6 , $ method ->startLine ());
5757 $ this ->assertSame (16 , $ method ->endLine ());
5858 $ this ->assertSame (1 , $ method ->cyclomaticComplexity ());
@@ -200,7 +200,7 @@ public function testDetailsAboutExtendedClassesImplementedInterfacesAndUsedTrait
200200 $ this ->assertSame ('four ' , $ method ->name ());
201201 $ this ->assertSame (21 , $ method ->startLine ());
202202 $ this ->assertSame (23 , $ method ->endLine ());
203- $ this ->assertSame (' public ' , $ method ->visibility ());
203+ $ this ->assertSame (Visibility::Public , $ method ->visibility ());
204204 $ this ->assertSame ('four(): void ' , $ method ->signature ());
205205 $ this ->assertSame (1 , $ method ->cyclomaticComplexity ());
206206
@@ -233,7 +233,7 @@ public function testDetailsAboutExtendedClassesImplementedInterfacesAndUsedTrait
233233 $ this ->assertSame ('five ' , $ method ->name ());
234234 $ this ->assertSame (28 , $ method ->startLine ());
235235 $ this ->assertSame (30 , $ method ->endLine ());
236- $ this ->assertSame (' public ' , $ method ->visibility ());
236+ $ this ->assertSame (Visibility::Public , $ method ->visibility ());
237237 $ this ->assertSame ('five(A $a, B $b): void ' , $ method ->signature ());
238238 $ this ->assertSame (1 , $ method ->cyclomaticComplexity ());
239239
0 commit comments