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

Public Member Functions

 testConstruct ()
 Monolog::__construct More...
 
 testConstructInvalidFacility ()
 Monolog::__construct More...
 

Detailed Description

Definition at line 16 of file SyslogHandlerTest.php.

Member Function Documentation

◆ testConstruct()

Monolog\Handler\SyslogHandlerTest::testConstruct ( )

Monolog::__construct

Definition at line 21 of file SyslogHandlerTest.php.

References $handler, and Monolog\Logger\DEBUG.

22  {
23  $handler = new SyslogHandler('test');
24  $this->assertInstanceOf('Monolog\Handler\SyslogHandler', $handler);
25 
26  $handler = new SyslogHandler('test', LOG_USER);
27  $this->assertInstanceOf('Monolog\Handler\SyslogHandler', $handler);
28 
29  $handler = new SyslogHandler('test', 'user');
30  $this->assertInstanceOf('Monolog\Handler\SyslogHandler', $handler);
31 
32  $handler = new SyslogHandler('test', LOG_USER, Logger::DEBUG, true, LOG_PERROR);
33  $this->assertInstanceOf('Monolog\Handler\SyslogHandler', $handler);
34  }
const DEBUG
Detailed debug information.
Definition: Logger.php:33
$handler

◆ testConstructInvalidFacility()

Monolog\Handler\SyslogHandlerTest::testConstructInvalidFacility ( )

Monolog::__construct

Definition at line 39 of file SyslogHandlerTest.php.

References $handler.

40  {
41  $this->setExpectedException('UnexpectedValueException');
42  $handler = new SyslogHandler('test', 'unknown');
43  }
$handler

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