Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 5e9f463

Browse files
author
fhein
committed
Although 42 is the answer on all questions it did not work this time.
Stupid me.
1 parent 24110b2 commit 5e9f463

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/Scanner/MethodScannerTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ public function testMethodScannerSetVisibilityThrowsInvalidArgumentException()
117117
$methodScanner = new MethodScanner([]);
118118

119119
// make sure test argument is invalid
120-
$min = min(T_PUBLIC, T_PROTECTED, T_PRIVATE);
121-
$invalidArgument = $min > 42 ? 42 : 43;
120+
$invalidArgument = max(T_PUBLIC, T_PROTECTED, T_PRIVATE) + 1;
122121

123122
$this->expectException('\Zend\Code\Exception\InvalidArgumentException');
124123
$methodScanner->setVisibility($invalidArgument);

0 commit comments

Comments
 (0)