#ini_set( 'memory_limit', '40M' );
-require_once( 'PHPUnit.php' );
-require_once( 'UtfNormal.php' );
+require_once 'PHPUnit/Framework.php';
+require_once 'PHPUnit/TextUI/TestRunner.php';
+
+require_once 'UtfNormal.php';
/**
* @package UtfNormal
*/
-class CleanUpTest extends PHPUnit_TestCase {
- /**
- * @param $name String: FIXME
- */
- function CleanUpTest( $name ) {
- $this->PHPUnit_TestCase( $name );
- }
-
+class CleanUpTest extends PHPUnit_Framework_TestCase {
/** @todo document */
function setUp() {
}
}
-$suite = new PHPUnit_TestSuite( 'CleanUpTest' );
-$result = PHPUnit::run( $suite );
-echo $result->toString();
+$suite = new PHPUnit_Framework_TestSuite( 'CleanUpTest' );
+$result = PHPUnit_TextUI_TestRunner::run( $suite );
if( !$result->wasSuccessful() ) {
exit( -1 );
data from from the net if necessary. If it reports failure, something is
going wrong!
+You may have to set up PHPUnit first.
+
+$ pear channel-discover pear.phpunit.de
+$ pear install phpunit/PHPUnit
== Benchmarks ==