| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function testAfterRemove() |
||
| 25 | { |
||
| 26 | $object = new DynamicObject(); |
||
| 27 | $object->{'method'} = function() { |
||
| 28 | return true; |
||
| 29 | }; |
||
| 30 | $this->assertTrue(call_user_func([$object, 'method'])); |
||
| 31 | $object->removeMethod('method'); |
||
| 32 | $this->expectException(MethodNotFoundException::class); |
||
| 33 | $object->{'method'}(); |
||
| 34 | } |
||
| 35 | } |
||
| 37 |