ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Monolog\Handler\CouchDBHandlerTest Class Reference
+ Inheritance diagram for Monolog\Handler\CouchDBHandlerTest:
+ Collaboration diagram for Monolog\Handler\CouchDBHandlerTest:

Public Member Functions

 testHandle ()
 

Additional Inherited Members

- Protected Member Functions inherited from Monolog\TestCase
 getRecord ($level=Logger::WARNING, $message='test', $context=array())
 
 getMultipleRecords ()
 
 getIdentityFormatter ()
 

Detailed Description

Definition at line 17 of file CouchDBHandlerTest.php.

Member Function Documentation

◆ testHandle()

Monolog\Handler\CouchDBHandlerTest::testHandle ( )

Definition at line 19 of file CouchDBHandlerTest.php.

References $handler, Monolog\TestCase\getRecord(), and Monolog\Logger\WARNING.

20  {
21  $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));
22 
23  $handler = new CouchDBHandler();
24 
25  try {
26  $handler->handle($record);
27  } catch (\RuntimeException $e) {
28  $this->markTestSkipped('Could not connect to couchdb server on http://localhost:5984');
29  }
30  }
getRecord($level=Logger::WARNING, $message='test', $context=array())
Definition: TestCase.php:19
const WARNING
Exceptional occurrences that are not errors.
Definition: Logger.php:53
$handler
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: