diff --git a/tests/ExceptionTest.php b/tests/ExceptionTest.php index 267a37b..3f66f41 100755 --- a/tests/ExceptionTest.php +++ b/tests/ExceptionTest.php @@ -8,16 +8,12 @@ */ use Rudra\Exceptions\{ - DBException, LogicException, RudraException, - RouterException, - RequestException, - DatabaseException, + RouterException, + RuntimeException, NotFoundException, MiddlewareException, - EnvironmentException, - ConfigurationException }; use PHPUnit\Framework\TestCase; @@ -28,30 +24,6 @@ protected function tearDown(): void restore_exception_handler(); } - public function testDBException() - { - $this->expectException(DBException::class); - throw new DBException("Some message"); - } - - public function testConfigurationException() - { - $this->expectException(ConfigurationException::class); - throw new ConfigurationException("Some message"); - } - - public function testDatabaseException() - { - $this->expectException(DatabaseException::class); - throw new DatabaseException("Some message"); - } - - public function testEnvironmentException() - { - $this->expectException(EnvironmentException::class); - throw new EnvironmentException("Some message"); - } - public function testLogicException() { $this->expectException(LogicException::class); @@ -64,12 +36,6 @@ public function testNotFoundException() throw new NotFoundException("Some message"); } - public function testRequestException() - { - $this->expectException(RequestException::class); - throw new RequestException("Some message"); - } - public function testRouterException() { $this->expectException(RouterException::class);