10 $this->assertInstanceOf(
11 'Psr\Log\LoggerAwareInterface',
20 $this->assertInstanceOf(
62 $server->sapi = new \Sabre\HTTP\SapiMock();
68 $this->assertEquals(404,
$response->getStatus());
71 $this->assertEquals(1, count($logger->logs));
73 $logItem = $logger->logs[0];
76 \
Psr\Log\LogLevel::INFO,
80 $this->assertInstanceOf(
82 $logItem[2][
'exception']
foreach($paths as $path) $request
testLogException()
Start the server, trigger an exception and see if the logger captured it.
The MockLogger is a simple PSR-3 implementation that we can use to test whether things get logged cor...
testGetNullLoggerByDefault()