Definition at line 5 of file PSR3Test.php.
◆ testGetNullLoggerByDefault()
Sabre\DAV\PSR3Test::testGetNullLoggerByDefault |
( |
| ) |
|
◆ testIsLoggerAware()
Sabre\DAV\PSR3Test::testIsLoggerAware |
( |
| ) |
|
Definition at line 7 of file PSR3Test.php.
References $server.
10 $this->assertInstanceOf(
11 'Psr\Log\LoggerAwareInterface',
◆ testLogException()
Sabre\DAV\PSR3Test::testLogException |
( |
| ) |
|
Start the server, trigger an exception and see if the logger captured it.
Definition at line 45 of file PSR3Test.php.
References $request, $response, and $server.
48 $logger =
new MockLogger();
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
◆ testSetLogger()
Sabre\DAV\PSR3Test::testSetLogger |
( |
| ) |
|
The documentation for this class was generated from the following file: