<?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);
|