require_once 'PHPUnit.php';
object PHPUnit::run (object $suite)
object PHPUnit::run
Executes the given test suite
object $suite - an object of PHPUnit_TestSuite
&PHPUnit_Result - A reference to a PHPUnit_Result.
Пример 54-1. Using PHPUnit::run()
<?php require_once "PHPUnit.php"; $suite = New PHPUnit_TestSuite('Mathtest'); $result = PHPUnit::run($suite); echo $result->toHtml(); ?>