summaryrefslogtreecommitdiff
path: root/includes/normal/CleanUpTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/normal/CleanUpTest.php')
-rw-r--r--includes/normal/CleanUpTest.php36
1 files changed, 13 insertions, 23 deletions
diff --git a/includes/normal/CleanUpTest.php b/includes/normal/CleanUpTest.php
index 30ec6a95..cc6f0737 100644
--- a/includes/normal/CleanUpTest.php
+++ b/includes/normal/CleanUpTest.php
@@ -17,15 +17,6 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# http://www.gnu.org/copyleft/gpl.html
-/**
- * Additional tests for UtfNormal::cleanUp() function, inclusion
- * regression checks for known problems.
- *
- * Requires PHPUnit.
- *
- * @package UtfNormal
- * @private
- */
if( php_sapi_name() != 'cli' ) {
die( "Run me from the command line please.\n" );
@@ -38,20 +29,20 @@ if( isset( $_SERVER['argv'] ) && in_array( '--icu', $_SERVER['argv'] ) ) {
#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
+ * Additional tests for UtfNormal::cleanUp() function, inclusion
+ * regression checks for known problems.
+ * Requires PHPUnit.
+ *
+ * @addtogroup UtfNormal
+ * @private
*/
-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() {
}
@@ -412,9 +403,8 @@ class CleanUpTest extends PHPUnit_TestCase {
}
-$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 );