| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 13 | public function testExecuteSubscriber() |
||
| 14 | { |
||
| 15 | $sut = new ExecutionWrapper(); |
||
| 16 | $profiler = new TimeProfilerSubscriber(); |
||
| 17 | $sut->getEventDispatcher()->addSubscriber($profiler); |
||
| 18 | |||
| 19 | $sut->exec('echo %s', array("'123'")); |
||
| 20 | |||
| 21 | $this->assertTrue($profiler->getProfiledTimestamp() > 0); |
||
| 22 | } |
||
| 23 | } |