| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 15 | public function testInvoke() |
||
| 16 | { |
||
| 17 | $expected = new \stdClass(); |
||
| 18 | $originalFactory = function () use ($expected) { |
||
| 19 | return $expected; |
||
| 20 | }; |
||
| 21 | $container = new Container(); |
||
| 22 | $this->wrapper = new CallbackWrapper($container, $originalFactory); |
||
| 23 | $this->assertSame($expected, call_user_func($this->wrapper, $container)); |
||
| 24 | } |
||
| 25 | } |
||
| 26 |