From b4b2b10db3979ccab287d0fc1a92950deaecce3c Mon Sep 17 00:00:00 2001 From: "J. King" Date: Fri, 17 Aug 2018 10:34:54 -0400 Subject: [PATCH] Cover fatal exception; improves #66 --- tests/cases/Exception/TestException.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/cases/Exception/TestException.php b/tests/cases/Exception/TestException.php index 6dba703..f77ce37 100644 --- a/tests/cases/Exception/TestException.php +++ b/tests/cases/Exception/TestException.php @@ -73,4 +73,10 @@ class TestException extends \JKingWeb\Arsse\Test\AbstractTest { $this->assertException("uncoded"); throw new LangException("testThisExceptionMessageDoesNotExist"); } + + /** @covers \JKingWeb\Arsse\ExceptionFatal */ + public function testFatalException() { + $this->expectException('JKingWeb\Arsse\ExceptionFatal'); + throw new \JKingWeb\Arsse\ExceptionFatal(""); + } }