mirror of
https://github.com/danog/amp.git
synced 2024-11-27 04:24:42 +01:00
More code coverage ignores; throw Error instead of DomainException
This commit is contained in:
parent
35ac983c53
commit
2ab7403ded
@ -642,7 +642,7 @@ abstract class Driver {
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
// @codeCoverageIgnoreStart
|
// @codeCoverageIgnoreStart
|
||||||
throw new \DomainException("Unknown watcher type");
|
throw new \Error("Unknown watcher type");
|
||||||
// @codeCoverageIgnoreEnd
|
// @codeCoverageIgnoreEnd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -207,7 +207,9 @@ class EvDriver extends Driver {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new \DomainException("Unknown watcher type");
|
// @codeCoverageIgnoreStart
|
||||||
|
throw new \Error("Unknown watcher type");
|
||||||
|
// @codeCoverageIgnoreEnd
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->events[$id]->start();
|
$this->events[$id]->start();
|
||||||
|
@ -220,7 +220,9 @@ class EventDriver extends Driver {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new \DomainException("Unknown watcher type");
|
// @codeCoverageIgnoreStart
|
||||||
|
throw new \Error("Unknown watcher type");
|
||||||
|
// @codeCoverageIgnoreEnd
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -269,7 +269,9 @@ class NativeDriver extends Driver {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new \DomainException("Unknown watcher type");
|
// @codeCoverageIgnoreStart
|
||||||
|
throw new \Error("Unknown watcher type");
|
||||||
|
// @codeCoverageIgnoreEnd
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -312,7 +314,9 @@ class NativeDriver extends Driver {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new \DomainException("Unknown watcher type");
|
// @codeCoverageIgnoreStart
|
||||||
|
throw new \Error("Unknown watcher type");
|
||||||
|
// @codeCoverageIgnoreEnd
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -241,7 +241,9 @@ class UvDriver extends Driver {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new \DomainException("Unknown watcher type");
|
// @codeCoverageIgnoreStart
|
||||||
|
throw new \Error("Unknown watcher type");
|
||||||
|
// @codeCoverageIgnoreEnd
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -300,7 +302,9 @@ class UvDriver extends Driver {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new \DomainException("Unknown watcher type");
|
// @codeCoverageIgnoreStart
|
||||||
|
throw new \Error("Unknown watcher type");
|
||||||
|
// @codeCoverageIgnoreEnd
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user