ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Monolog\Handler\NullHandlerTest Class Reference

Monolog::handle More...

+ Inheritance diagram for Monolog\Handler\NullHandlerTest:
+ Collaboration diagram for Monolog\Handler\NullHandlerTest:

Public Member Functions

 testHandle ()
 
 testHandleLowerLevelRecord ()
 

Additional Inherited Members

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

Detailed Description

Monolog::handle

Definition at line 20 of file NullHandlerTest.php.

Member Function Documentation

◆ testHandle()

Monolog\Handler\NullHandlerTest::testHandle ( )

Definition at line 22 of file NullHandlerTest.php.

References $handler.

23  {
24  $handler = new NullHandler();
25  $this->assertTrue($handler->handle($this->getRecord()));
26  }
$handler

◆ testHandleLowerLevelRecord()

Monolog\Handler\NullHandlerTest::testHandleLowerLevelRecord ( )

Definition at line 28 of file NullHandlerTest.php.

References $handler, Monolog\Logger\DEBUG, and Monolog\Logger\WARNING.

29  {
30  $handler = new NullHandler(Logger::WARNING);
31  $this->assertFalse($handler->handle($this->getRecord(Logger::DEBUG)));
32  }
const DEBUG
Detailed debug information.
Definition: Logger.php:33
const WARNING
Exceptional occurrences that are not errors.
Definition: Logger.php:53
$handler

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