ExceptionTrapTest.php 580 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace Tools\Test\TestCase\ErrorHandler;
  3. use Shim\TestSuite\TestCase;
  4. use Tools\Error\ErrorLogger;
  5. use Tools\Error\ExceptionTrap;
  6. class ExceptionTrapTest extends TestCase {
  7. /**
  8. * @var \Tools\Error\ExceptionTrap
  9. */
  10. protected ExceptionTrap $exceptionTrap;
  11. /**
  12. * @return void
  13. */
  14. public function setUp(): void {
  15. parent::setUp();
  16. $this->exceptionTrap = new ExceptionTrap();
  17. }
  18. /**
  19. * @return void
  20. */
  21. public function testLogger(): void {
  22. $result = $this->exceptionTrap->getConfig('logger');
  23. $this->assertSame(ErrorLogger::class, $result);
  24. }
  25. }