<?php
/**
 * this is the configuration file for the PMO Tests.
 *
 * This file is part of the PhpMyObject project.
 * 
 * For questions, help, comments, discussion, etc., please join our
 * forum at {@link http://www.developpez.net/forums/forumdisplay.php?f=770} 
 * or our mailing list at {@link http://groups.google.com/group/pmo-dev}.
 *
 * PhpMyProject is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * @package    PhpMyObject
 * @subpackage PMO_Tests
 * @author     Nicolas Boiteux <nicolas_boiteux@yahoo.fr>
 * @author     Louis Lapointe <laplix@gmail.com>
 * @link       http://pmo.developpez.com/
 * @since      PhpMyObject v0.14
 * @version    $Revision$
 * @copyright  PhpMyObject is Copyright (C) 2007-2008 Nicolas Boiteux 
 * @license    GPLv3 {@link http://www.gnu.org/licenses/gpl}
 * @filesource
 *
 */

/**
 * to ease up path building
 */
if (!defined('DS')) {
   define ('DS', DIRECTORY_SEPARATOR);
}

/**
 * path to PMO
 */
if (!defined('PMO_ROOT')) {
   define('PMO_ROOT', dirname(dirname(__FILE__)));
	define('PMO_CORE', PMO_ROOT.DS.'PMO_core');
	define('PMO_TESTS', PMO_ROOT.DS.'PMO_tests');
}

/**
 * path to the simpletest library
 * ajust according to your configuration
 */
if (!defined('SIMPLETEST')) {
   define ('SIMPLETEST', PMO_TESTS . DS . 'simpletest' . DS . 'simpletest');
}

/**
 * requires the PMO library
 */
require_once(PMO_CORE . DS . 'PMO_MyController.php');

/**
 * Requires the needed libraries
 * These are PMO extensions to the standard Simpletest UnitTestCase
 * and HTMLReporter classes.
 */
require_once(PMO_TESTS . DS . 'simpletest' . DS . 'PMO_unit_tester.php');

// for debug purpose
function pr($data) {
	echo '<div style="clear:both;position:relative; z-index:1000;"><pre>'
		. print_r($data, true)
		. '</pre></div><div style="clear:both;">&nbsp;</div>';
}


