| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 37 | public function testError()  | 
            ||
| 38 |     { | 
            ||
| 39 | $result = null;  | 
            ||
| 40 | |||
| 41 |         Yii::$app->async->on('error', function (ErrorEvent $event) use (&$result) { | 
            ||
| 42 | $result = get_class($event->throwable);  | 
            ||
| 43 | });  | 
            ||
| 44 | |||
| 45 | Yii::$app->async->run(new TaskRunnerErrorTest())->wait();  | 
            ||
| 46 | |||
| 47 |         $this->assertEquals('yii\console\Exception', $result); | 
            ||
| 48 | }  | 
            ||
| 49 | |||
| 64 |