* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @version CVS: $Id$
* @link http://pear.php.net/package/XML_Util
* @since 1.2.0a1
*/
/**
* Check PHP version... PhpUnit v3+ requires at least PHP v5.1.4
*/
if (version_compare(PHP_VERSION, "5.1.4") < 0) {
// Cannnot run test suites
echo 'Cannot run test suite via PhpUnit... requires at least PHP v5.1.4.' . PHP_EOL;
echo 'Use "pear run-tests -p xml_util" to run the PHPT tests directly.' . PHP_EOL;
exit(1);
}
/**
* Derive the "main" method name
* @internal PhpUnit would have to rename PHPUnit_MAIN_METHOD to PHPUNIT_MAIN_METHOD
* to make this usage meet the PEAR CS... we cannot rename it here.
*/
if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'Structures_Graph_AllTests::main');
}
/*
* Files needed by PhpUnit
*/
require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once 'PHPUnit/Extensions/PhptTestSuite.php';
/*
* You must add each additional class-level test suite file here
*/
require_once dirname(__FILE__).'/testCase/BasicGraph.php';
/**
* Master Unit Test Suite class for Structures_Graph
*
* This top-level test suite class organizes
* all class test suite files,
* so that the full suite can be run
* by PhpUnit or via "pear run-tests -up Structures_Graph".
*
* @category Structures
* @package Structures_Graph
* @subpackage UnitTesting
* @author Chuck Burgess