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:
|
||||
// @codeCoverageIgnoreStart
|
||||
throw new \DomainException("Unknown watcher type");
|
||||
throw new \Error("Unknown watcher type");
|
||||
// @codeCoverageIgnoreEnd
|
||||
}
|
||||
|
||||
|
@ -207,7 +207,9 @@ class EvDriver extends Driver {
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new \DomainException("Unknown watcher type");
|
||||
// @codeCoverageIgnoreStart
|
||||
throw new \Error("Unknown watcher type");
|
||||
// @codeCoverageIgnoreEnd
|
||||
}
|
||||
} else {
|
||||
$this->events[$id]->start();
|
||||
|
@ -220,7 +220,9 @@ class EventDriver extends Driver {
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new \DomainException("Unknown watcher type");
|
||||
// @codeCoverageIgnoreStart
|
||||
throw new \Error("Unknown watcher type");
|
||||
// @codeCoverageIgnoreEnd
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -269,7 +269,9 @@ class NativeDriver extends Driver {
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new \DomainException("Unknown watcher type");
|
||||
// @codeCoverageIgnoreStart
|
||||
throw new \Error("Unknown watcher type");
|
||||
// @codeCoverageIgnoreEnd
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -312,7 +314,9 @@ class NativeDriver extends Driver {
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new \DomainException("Unknown watcher type");
|
||||
// @codeCoverageIgnoreStart
|
||||
throw new \Error("Unknown watcher type");
|
||||
// @codeCoverageIgnoreEnd
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -241,7 +241,9 @@ class UvDriver extends Driver {
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new \DomainException("Unknown watcher type");
|
||||
// @codeCoverageIgnoreStart
|
||||
throw new \Error("Unknown watcher type");
|
||||
// @codeCoverageIgnoreEnd
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -300,7 +302,9 @@ class UvDriver extends Driver {
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new \DomainException("Unknown watcher type");
|
||||
// @codeCoverageIgnoreStart
|
||||
throw new \Error("Unknown watcher type");
|
||||
// @codeCoverageIgnoreEnd
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user