Conditions | 5 |
Paths | 5 |
Total Lines | 19 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function prepareInvocation($invoked) : PHPUnit_Framework_MockObject_Matcher_Invocation |
||
13 | { |
||
14 | if ($invoked === null) { |
||
15 | return TestCase::any(); |
||
16 | } |
||
17 | |||
18 | if (\is_object($invoked)) { |
||
19 | return $invoked; |
||
20 | } |
||
21 | |||
22 | if (\is_numeric($invoked)) { |
||
23 | return $this->prepareInvocationNumeric((int)$invoked); |
||
24 | } |
||
25 | |||
26 | if (\is_string($invoked)) { |
||
27 | return $this->prepareInvocationString($invoked); |
||
28 | } |
||
29 | |||
30 | throw new TestException("prepareInvocation cannot prepare '$invoked'"); |
||
31 | } |
||
76 |