1
0
mirror of https://github.com/danog/amp.git synced 2025-01-21 21:01:16 +01:00

Fix DummyDriver

Conflict due to merge of #68
This commit is contained in:
Aaron Piotrowski 2016-05-31 10:08:10 -05:00
parent 5a82cd9b6b
commit ae441eb179

View File

@ -4,6 +4,8 @@ namespace Interop\Async\Loop\Test;
class DummyDriver implements \Interop\Async\Loop\Driver
{
use \Interop\Async\Loop\Registry;
public $defers;
public $handler;
public static $id = "a";
@ -12,7 +14,7 @@ class DummyDriver implements \Interop\Async\Loop\Driver
while (list($defer, $data) = array_shift($this->defers)) {
try {
$defer(self::$id++, $data);
} catch (Exception $e) {
} catch (\Exception $e) {
if ($handler = $this->handler) {
$handler($e);
} else {