@@ -25,45 +25,45 @@ class EnumMethodReflectionTest extends TestCase
2525 */
2626 protected $ reflectionExtension ;
2727
28- public function setUp ()
28+ public function setUp (): void
2929 {
3030 $ this ->broker = $ this ->createBroker ();
3131 $ this ->reflectionExtension = new EnumMethodsClassReflectionExtension ();
3232 }
3333
34- public function getDeclaringClass ()
34+ public function testGetDeclaringClass (): void
3535 {
3636 $ classReflection = $ this ->broker ->getClass (VisibilityEnum::class);
3737 $ methodReflection = $ this ->reflectionExtension ->getMethod ($ classReflection , 'STR ' );
3838
3939 $ this ->assertSame ($ classReflection , $ methodReflection ->getDeclaringClass ());
4040 }
4141
42- public function testShouldBeStatic ()
42+ public function testShouldBeStatic (): void
4343 {
4444 $ classReflection = $ this ->broker ->getClass (VisibilityEnum::class);
4545 $ methodReflection = $ this ->reflectionExtension ->getMethod ($ classReflection , 'STR ' );
4646
4747 $ this ->assertTrue ($ methodReflection ->isStatic ());
4848 }
4949
50- public function testShouldNotBePrivate ()
50+ public function testShouldNotBePrivate (): void
5151 {
5252 $ classReflection = $ this ->broker ->getClass (VisibilityEnum::class);
5353 $ methodReflection = $ this ->reflectionExtension ->getMethod ($ classReflection , 'STR ' );
5454
5555 $ this ->assertFalse ($ methodReflection ->isPrivate ());
5656 }
5757
58- public function testShouldBePublic ()
58+ public function testShouldBePublic (): void
5959 {
6060 $ classReflection = $ this ->broker ->getClass (VisibilityEnum::class);
6161 $ methodReflection = $ this ->reflectionExtension ->getMethod ($ classReflection , 'STR ' );
6262
6363 $ this ->assertTrue ($ methodReflection ->isPublic ());
6464 }
6565
66- public function testGetVariants ()
66+ public function testGetVariants (): void
6767 {
6868 $ classReflection = $ this ->broker ->getClass (VisibilityEnum::class);
6969 $ methodReflection = $ this ->reflectionExtension ->getMethod ($ classReflection , 'STR ' );
@@ -72,7 +72,7 @@ public function testGetVariants()
7272 $ this ->assertSame (VisibilityEnum::class, $ parametersAcceptor ->getReturnType ()->describe (VerbosityLevel::value ()));
7373 }
7474
75- public function testGetDocComment ()
75+ public function testGetDocComment (): void
7676 {
7777 $ classReflection = $ this ->broker ->getClass (DocCommentEnum::class);
7878 $ docMethodRefl = $ this ->reflectionExtension ->getMethod ($ classReflection , 'WITH_DOC_BLOCK ' );
@@ -88,7 +88,7 @@ public function testGetDocComment()
8888 $ this ->assertNotRegExp ('/@var/ ' , $ docMethodRefl ->getDocComment ());
8989 }
9090
91- public function testIsDeprecated ()
91+ public function testIsDeprecated (): void
9292 {
9393 $ classReflection = $ this ->broker ->getClass (DeprecatedEnum::class);
9494 $ deprecatedRefl = $ this ->reflectionExtension ->getMethod ($ classReflection , 'DEPRECATED ' );
@@ -98,7 +98,7 @@ public function testIsDeprecated()
9898 $ this ->assertTrue ($ notDeprecatedRefl ->isDeprecated ()->no ());
9999 }
100100
101- public function testGetDeprecatedDescription ()
101+ public function testGetDeprecatedDescription (): void
102102 {
103103 $ classReflection = $ this ->broker ->getClass (DeprecatedEnum::class);
104104 $ deprecatedRefl = $ this ->reflectionExtension ->getMethod ($ classReflection , 'DEPRECATED ' );
0 commit comments