Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 2 additions & 36 deletions tests/ExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,12 @@
*/

use Rudra\Exceptions\{
DBException,
LogicException,
RudraException,
RouterException,
RequestException,
DatabaseException,
RouterException,
RuntimeException,
NotFoundException,
MiddlewareException,
EnvironmentException,
ConfigurationException
};
use PHPUnit\Framework\TestCase;

Expand All @@ -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);
Expand All @@ -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);
Expand Down
Loading