|
|
@@ -29,7 +29,6 @@ use Cake\Log\Log;
|
|
|
use Cake\TestSuite\TestCase;
|
|
|
use Cake\Utility\Text;
|
|
|
use InvalidArgumentException;
|
|
|
-use stdClass;
|
|
|
use TestApp\Error\LegacyErrorLogger;
|
|
|
use Throwable;
|
|
|
|
|
|
@@ -55,14 +54,6 @@ class ExceptionTrapTest extends TestCase
|
|
|
ini_set('memory_limit', $this->memoryLimit);
|
|
|
}
|
|
|
|
|
|
- public function testConfigRendererInvalid()
|
|
|
- {
|
|
|
- $trap = new ExceptionTrap(['exceptionRenderer' => stdClass::class]);
|
|
|
- $this->expectException(InvalidArgumentException::class);
|
|
|
- $error = new InvalidArgumentException('nope');
|
|
|
- $trap->renderer($error);
|
|
|
- }
|
|
|
-
|
|
|
public function testConfigExceptionRendererFallbackInCli()
|
|
|
{
|
|
|
$this->deprecated(function () {
|
|
|
@@ -108,13 +99,6 @@ class ExceptionTrapTest extends TestCase
|
|
|
$this->assertInstanceOf(ConsoleExceptionRenderer::class, $trap->renderer($error));
|
|
|
}
|
|
|
|
|
|
- public function testLoggerConfigInvalid()
|
|
|
- {
|
|
|
- $trap = new ExceptionTrap(['logger' => stdClass::class]);
|
|
|
- $this->expectException(InvalidArgumentException::class);
|
|
|
- $trap->logger();
|
|
|
- }
|
|
|
-
|
|
|
public function testLoggerConfig()
|
|
|
{
|
|
|
$trap = new ExceptionTrap(['logger' => ErrorLogger::class]);
|