function testSetBacktraceDepth() { $this->log->setBacktraceDepth(LOG_NOTICE, $depth = 0); $this->log->log('info', LOG_INFO, array(), new lmbBacktrace()); $this->assertNotEqual($depth, count($this->_getLastLogEntry()->getBacktrace()->get())); $this->log->log('notice', LOG_NOTICE, array(), new lmbBacktrace()); $this->assertEqual($depth, count($this->_getLastLogEntry()->getBacktrace()->get())); }
function testSetBacktraceDepth() { $this->log->setBacktraceDepth(LOG_ERR, $depth = 0); $this->log->log('notice', LOG_NOTICE); $this->assertNotEqual($depth, count($this->_getLastLogEntry()->getBacktrace()->get())); $this->log->log('error', LOG_ERR); $this->assertEqual($depth, count($this->_getLastLogEntry()->getBacktrace()->get())); }