]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - maintenance/tests/TitleTest.php
MediaWiki 1.17.0
[autoinstallsdev/mediawiki.git] / maintenance / tests / TitleTest.php
diff --git a/maintenance/tests/TitleTest.php b/maintenance/tests/TitleTest.php
deleted file mode 100644 (file)
index 5b42c1c..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-class TitleTest extends PHPUnit_Framework_TestCase {
-
-       function testLegalChars() {
-               $titlechars = Title::legalChars();
-
-               foreach ( range( 1, 255 ) as $num ) {
-                       $chr = chr( $num );
-                       if ( strpos( "#[]{}<>|", $chr ) !== false || preg_match( "/[\\x00-\\x1f\\x7f]/", $chr ) ) {
-                               $this->assertFalse( (bool)preg_match( "/[$titlechars]/", $chr ), "chr($num) = $chr is not a valid titlechar" );
-                       } else {
-                               $this->assertTrue( (bool)preg_match( "/[$titlechars]/", $chr ), "chr($num) = $chr is a valid titlechar" );
-                       }
-               }
-       }
-}