Skip to content

Commit d8eb766

Browse files
authored
chore: remove setAccessible reflection method calls, that do nothing in test (#416)
1 parent 33d7d14 commit d8eb766

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tests/Unit/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/BaseVariadicFunctionTestCase.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)