1
0
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:
Aaron Piotrowski 2017-03-14 11:44:19 -05:00
parent 35ac983c53
commit 2ab7403ded
5 changed files with 19 additions and 7 deletions

View File

@ -642,7 +642,7 @@ abstract class Driver {
default:
// @codeCoverageIgnoreStart
throw new \DomainException("Unknown watcher type");
throw new \Error("Unknown watcher type");
// @codeCoverageIgnoreEnd
}

View File

@ -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();

View File

@ -220,7 +220,9 @@ class EventDriver extends Driver {
break;
default:
throw new \DomainException("Unknown watcher type");
// @codeCoverageIgnoreStart
throw new \Error("Unknown watcher type");
// @codeCoverageIgnoreEnd
}
}

View File

@ -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
}
}

View File

@ -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
}
}
}