◆ setup()
Monolog\Handler\DoctrineCouchDBHandlerTest::setup |
( |
| ) |
|
|
protected |
Definition at line 19 of file DoctrineCouchDBHandlerTest.php.
21 if (!class_exists(
'Doctrine\CouchDB\CouchDBClient')) {
22 $this->markTestSkipped(
'The "doctrine/couchdb" package is not installed');
◆ testHandle()
Monolog\Handler\DoctrineCouchDBHandlerTest::testHandle |
( |
| ) |
|
Definition at line 26 of file DoctrineCouchDBHandlerTest.php.
References $client, array, format, Monolog\TestCase\getRecord(), and Monolog\Logger\WARNING.
28 $client = $this->getMockBuilder(
'Doctrine\\CouchDB\\CouchDBClient')
29 ->setMethods(
array(
'postDocument'))
30 ->disableOriginalConstructor()
37 'context' =>
array(
'data' =>
'[object] (stdClass: {})',
'foo' => 34),
39 'level_name' =>
'WARNING',
41 'datetime' => $record[
'datetime']->
format(
'Y-m-d H:i:s'),
46 ->method(
'postDocument')
49 $handler =
new DoctrineCouchDBHandler(
$client);
50 $handler->handle($record);
getRecord($level=Logger::WARNING, $message='test', $context=array())
const WARNING
Exceptional occurrences that are not errors.
Create styles array
The data for the language used.
Write to Excel2007 format
The documentation for this class was generated from the following file: