<?php
/**
* A PUnitCommand bootstrap script for the PUnit test suite.
*
* To execute all tests, switch to the directory containing this file and type "php Command.php PUnit_Test_Suite".
*
* For usage help, type "php Command.php -h".
*
* @package PUnit
*
* @author Stephen Feest
*
* @version $Id: Command.php 112 2008-02-10 23:38:45Z sfeest $
*/
$currentDirectory = dirname(__FILE__);
// Initialize PUnit
require_once $currentDirectory . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Initialize.php';
// Initialize the PUnit test suite
require_once $currentDirectory . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Initialize.php';
// Initialize PUnitCommand
require_once $currentDirectory . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'PUnitCommand' . DIRECTORY_SEPARATOR . 'Initialize.php';
/**
* Attempts to load a class.
*
* @param string $class The class.
*
* @return void
*/
function __autoload($class)
{
PUnit_ClassLoader::load($class);
}
$controller = new PUnitCommand_Controller();
$controller->start();
?>