Login   Register  
PHP Classes

File: tests/EasyLogger/Handler/HandlerTestCase.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Nikola Posa  >  EasyLogger  >  tests/EasyLogger/Handler/HandlerTestCase.php  >  Download  
File: tests/EasyLogger/Handler/HandlerTestCase.php
Role: Unit test script
Content type: text/plain
Description: Base handlers test case
Class: EasyLogger
Log events to files
Author: By
Last change:
Date: 2 years ago
Size: 437 bytes


Class file image Download
require_once 'EasyLogger.php';

abstract class 
EasyLogger_Handler_HandlerTestCase extends PHPUnit_Framework_TestCase 
    protected function 
_getRecord($level EasyLogger::LEVEL_INFO$message 'test')
        return array(
'timestamp'    => time(),
'message'      => $message,
'level'        => $level,
'levelName'    => EasyLogger::getLevelName($level)