Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function testException() |
||
11 | { |
||
12 | $object = new DynamicObject(); |
||
13 | $params = range(0, 100); |
||
14 | shuffle($params); |
||
15 | try { |
||
16 | call_user_func([$object, 'undefinedMethod'], ...$params); |
||
17 | } catch (MethodNotFoundException $ex) { |
||
18 | $this->assertEquals($params, $ex->getArguments()); |
||
19 | $this->assertEquals($object, $ex->getObject()); |
||
20 | $this->assertEquals('undefinedMethod', $ex->getName()); |
||
21 | } |
||
22 | } |
||
23 | |||
37 |