Browse Source

Cover fatal exception; improves #66

microsub
J. King 6 years ago
parent
commit
b4b2b10db3
  1. 6
      tests/cases/Exception/TestException.php

6
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("");
}
}

Loading…
Cancel
Save