◆ 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, $handler, Monolog\TestCase\getRecord(), Sabre\Event\once(), 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')
if($_SERVER['argc']< 4) $client
getRecord($level=Logger::WARNING, $message='test', $context=array())
once($eventName, callable $callBack, $priority=100)
Subscribe to an event exactly once.
const WARNING
Exceptional occurrences that are not errors.
The documentation for this class was generated from the following file: