cakemate / branches / master / vendors / test_manager.php
history
<?php
class TestManager {
/**
* Constructor
*
* @return void
* @access public
*/
public function TestManager() {
}
/**
* Runs a specific test case file
*
* @param string $testCaseFile
* @param string $reporter
* @return void
* @access public
*/
public function runTestCase($testCaseFile, &$reporter) {
if (!file_exists($testCaseFile)) {
trigger_error("Test case {$testCaseFile} cannot be found", E_USER_ERROR);
return false;
}
$test =& new GroupTest("Individual test case: " . $testCaseFile);
$test->addTestFile($testCaseFile);
return $test->run($reporter);
}
}
?>