PHP Classes

File: tests/EasyLogger/Handler/HandlerTestCase.php

Recommend this page to a friend!
  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: 11 years ago
Size: 437 bytes
 

Contents

Class file image Download
<?php
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)
        );
    }
}