1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-10 07:06:40 +02:00

Merge branch '1.x' into main

This commit is contained in:
Jordi Boggiano
2020-12-09 14:19:00 +01:00
9 changed files with 161 additions and 46 deletions

View File

@@ -36,9 +36,17 @@ class PHPConsoleHandlerTest extends TestCase
protected function setUp(): void
{
// suppress warnings until https://github.com/barbushin/php-console/pull/173 is merged
$previous = error_reporting(0);
if (!class_exists('PhpConsole\Connector')) {
error_reporting($previous);
$this->markTestSkipped('PHP Console library not found. See https://github.com/barbushin/php-console#installation');
}
if (!class_exists('PhpConsole\Handler')) {
error_reporting($previous);
$this->markTestSkipped('PHP Console library not found. See https://github.com/barbushin/php-console#installation');
}
error_reporting($previous);
$this->connector = $this->initConnectorMock();
$this->debugDispatcher = $this->initDebugDispatcherMock($this->connector);