CodeView
Back to article:
prod
tests
integration
reference-output
Ko
resources
test-clones
xml
custom-file
default-file
dist-file
special
tools
Base
Ko
unit
<?php require_once('PHPUnit/Framework/TestListener.php'); require_once('PHPUnit/Framework/TestResult.php'); require_once('PHPUnit/Framework/TestSuite.php'); class tests_TestRunner { private $suite; function __construct( PHPUnit_Framework_TestSuite $suite ) { $this->suite = $suite; } function addFormatter(PHPUnit_Framework_TestListener $formatter) { $this->formatter = $formatter; } function run() { $result = new PHPUnit_Framework_TestResult(); $result->addListener($this->formatter); $this->suite->run( $result ); } } ?>