PHP Classes
elePHPant
Icontem

File: tests/bootstrap.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/bootstrap.php  >  Download  
File: tests/bootstrap.php
Role: Unit test script
Content type: text/plain
Description: Tests bootstrap
Class: EasyLogger
Log events to files
Author: By
Last change:
Date: 2 years ago
Size: 410 bytes
 

Contents

Class file image Download
<?php
//PHP settings
error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
ini_set('display_errors', 1);

//Setting include path
$root = realpath(dirname(__FILE__) . '/..');
$library = $root . '/library';
$tests = $root . '/tests';
$path = array(
   
$library,
   
$tests,
   
get_include_path()
);
set_include_path(implode(PATH_SEPARATOR, $path));

//Unset global variables
unset($root, $library, $tests, $path);