diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-07-28 11:52:48 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-07-28 11:52:48 +0200 |
commit | 222b01f5169f1c7e69762e0e8904c24f78f71882 (patch) | |
tree | 8e932e12546bb991357ec48eb1638d1770be7a35 /t/inc/Title.t | |
parent | 00ab76a6b686e98a914afc1975812d2b1aaa7016 (diff) |
update to MediaWiki 1.16.0
Diffstat (limited to 't/inc/Title.t')
-rw-r--r-- | t/inc/Title.t | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/t/inc/Title.t b/t/inc/Title.t deleted file mode 100644 index 7373b9f2..00000000 --- a/t/inc/Title.t +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env php -<?php - -require 't/Test.php'; - -plan( 2 + 255 ); - -require_ok( 'includes/Defines.php' ); - -# require_ok() doesn't work for these, find out why -define( 'MEDIAWIKI', 1 ); -require 'LocalSettings.php'; -require 'includes/DefaultSettings.php'; - -require_ok( 'includes/Title.php' ); - -# -# legalChars() -# - -$titlechars = Title::legalChars(); - -foreach ( range( 1, 255 ) as $num ) { - $chr = chr( $num ); - if ( strpos( "#[]{}<>|", $chr ) !== false || preg_match( "/[\\x00-\\x1f\\x7f]/", $chr ) ) { - unlike( $chr, "/[$titlechars]/", "chr($num) = $chr is not a valid titlechar" ); - } else { - like( $chr, "/[$titlechars]/", "chr($num) = $chr is a valid titlechar" ); - } -} - -/* vim: set filetype=php: */ |