1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-23 01:26:11 +02:00

More testing coverage

This commit is contained in:
Jordi Boggiano
2011-06-29 21:32:02 +02:00
parent 7a56a1c73f
commit 66c1cc05a8
5 changed files with 87 additions and 12 deletions

View File

@@ -81,6 +81,9 @@ abstract class AbstractHandler implements HandlerInterface
*/
public function popProcessor()
{
if (!$this->processors) {
throw new \LogicException('You tried to pop from an empty processor stack.');
}
return array_shift($this->processors);
}