} public static function handleExceptionProvider(): array
{ return [ ['Uncaught Exception: foo',
new \
Exception('foo'
)],
['Uncaught Exception: foo',
new class('foo'
) extends \RuntimeException
{ }],
['Uncaught Exception: foo stdClass@anonymous bar',
new \
RuntimeException('foo '.
(new class() extends \stdClass
{ })::
class.' bar'
)],
['Uncaught Error: bar',
new \
Error('bar'
)],
['Uncaught ccc',
new \
ErrorException('ccc'
)],
[ 'Uncaught Error: Class "App\Controller\ClassDoesNotExist" not found',
new \
Error('Class "App\Controller\ClassDoesNotExist" not found'
),
"Attempted to load class \"ClassDoesNotExist\" from namespace \"App\Controller\".\nDid you forget a \"use\" statement for another namespace?",
],
];
} public function testBootstrappingLogger() {