21 if (!class_exists(
'Doctrine\CouchDB\CouchDBClient')) {
22 $this->markTestSkipped(
'The "doctrine/couchdb" package is not installed');
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.
CouchDB handler for Doctrine CouchDB ODM.