PHPUnit

PHPUnit --  Base class for running a testsuite

PHPUnit::run

PHPUnit_TestResult PHPUnit::&run (&$suite)

Executes the given test suite

Parameter

Returns

Example

$suite  = New PHPUnit_TestSuite('Mathtest');
$result = PHPUnit::run($suite);
echo $result->toHtml();