@@ -37,7 +37,6 @@ public function throws_an_exception_when_lexer_is_not_populated_with_a_lookahead
3737 $ baseVariadicFunction = $ this ->createFixture ();
3838
3939 $ reflectionMethod = new \ReflectionMethod ($ baseVariadicFunction ::class, 'feedParserWithNodesForNodeMappingPattern ' );
40- $ reflectionMethod ->setAccessible (true );
4140 $ reflectionMethod ->invoke ($ baseVariadicFunction , $ parser , 'ArithmeticPrimary ' );
4241 }
4342
@@ -68,7 +67,6 @@ protected function getMaxArgumentCount(): int
6867 $ this ->expectException (InvalidArgumentForVariadicFunctionException::class);
6968 $ reflectionClass = new \ReflectionClass ($ function );
7069 $ reflectionMethod = $ reflectionClass ->getMethod ('validateArguments ' );
71- $ reflectionMethod ->setAccessible (true );
7270
7371 $ node = $ this ->createMock (Node::class);
7472 $ reflectionMethod ->invoke ($ function , $ node ); // 1 argument when min 2 are required
@@ -101,7 +99,6 @@ protected function getMaxArgumentCount(): int
10199 $ this ->expectException (InvalidArgumentForVariadicFunctionException::class);
102100 $ reflectionClass = new \ReflectionClass ($ function );
103101 $ reflectionMethod = $ reflectionClass ->getMethod ('validateArguments ' );
104- $ reflectionMethod ->setAccessible (true );
105102
106103 $ node = $ this ->createMock (Node::class);
107104 $ reflectionMethod ->invoke ($ function , $ node , $ node , $ node ); // 3 arguments when max 2 are required
0 commit comments