| 12345678910111213141516171819202122232425262728 |
- <?php
- namespace Test\Depo\UniTester;
- use Depo\UniTester\TestCase;
- class ExceptionHandlingTest extends TestCase
- {
- protected function setUp(): void
- {
- }
- protected function tearDown(): void
- {
- }
- protected function execute(): void
- {
- $this->testExceptionThrown();
- }
- public function testExceptionThrown()
- {
- $this->expectException(\LogicException::class, function() {
- throw new \LogicException("Test exception");
- });
- }
- }
|