lithium\tests\cases\analysis\logger\adapter\SyslogTest::testConstruct PHP Method

testConstruct() public method

public testConstruct ( )
    public function testConstruct()
    {
        $expected = array('identity' => false, 'options' => LOG_ODELAY, 'facility' => LOG_USER, 'init' => true);
        $result = $this->syslog->_config;
        $this->assertEqual($expected, $result);
        $syslog = new Syslog(array('identity' => 'SyslogTest', 'priority' => LOG_DEBUG));
        $expected = array('identity' => 'SyslogTest', 'options' => LOG_ODELAY, 'facility' => LOG_USER, 'priority' => LOG_DEBUG, 'init' => true);
        $result = $syslog->_config;
        $this->assertEqual($expected, $result);
    }