diff --git a/tests/Unit/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/BaseVariadicFunctionTestCase.php b/tests/Unit/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/BaseVariadicFunctionTestCase.php index 5fa87b36..1621087c 100644 --- a/tests/Unit/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/BaseVariadicFunctionTestCase.php +++ b/tests/Unit/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/BaseVariadicFunctionTestCase.php @@ -37,7 +37,6 @@ public function throws_an_exception_when_lexer_is_not_populated_with_a_lookahead $baseVariadicFunction = $this->createFixture(); $reflectionMethod = new \ReflectionMethod($baseVariadicFunction::class, 'feedParserWithNodesForNodeMappingPattern'); - $reflectionMethod->setAccessible(true); $reflectionMethod->invoke($baseVariadicFunction, $parser, 'ArithmeticPrimary'); } @@ -68,7 +67,6 @@ protected function getMaxArgumentCount(): int $this->expectException(InvalidArgumentForVariadicFunctionException::class); $reflectionClass = new \ReflectionClass($function); $reflectionMethod = $reflectionClass->getMethod('validateArguments'); - $reflectionMethod->setAccessible(true); $node = $this->createMock(Node::class); $reflectionMethod->invoke($function, $node); // 1 argument when min 2 are required @@ -101,7 +99,6 @@ protected function getMaxArgumentCount(): int $this->expectException(InvalidArgumentForVariadicFunctionException::class); $reflectionClass = new \ReflectionClass($function); $reflectionMethod = $reflectionClass->getMethod('validateArguments'); - $reflectionMethod->setAccessible(true); $node = $this->createMock(Node::class); $reflectionMethod->invoke($function, $node, $node, $node); // 3 arguments when max 2 are required