MediaWiki
REL1_22
|
Runs the UTF-8 decoder test at: http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt. More...
Go to the source code of this file.
Functions | |
testLine ($test, $line, &$total, &$success, &$failed, $columns, $exceptions, $verbose) | |
Variables | |
if(!$in) | $columns = 0 |
$exceptions | |
$failed = 0 | |
while(false!==($line=fgets($in))) if(!$columns) | $ignore |
$in = fopen( "UTF-8-test.txt", "rt" ) | |
$longTests | |
$section = null | |
$sectionTests = array( '3.4' ) | |
$success = 0 | |
$test = '' | |
$total = 0 | |
$verbose = false | |
if (PHP_SAPI!= 'cli') |
Runs the UTF-8 decoder test at: http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt.
Copyright © 2004 Brion Vibber <[email protected]> http://www.mediawiki.org/
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html
Definition in file Utf8Test.php.
testLine | ( | $ | test, |
$ | line, | ||
&$ | total, | ||
&$ | success, | ||
&$ | failed, | ||
$ | columns, | ||
$ | exceptions, | ||
$ | verbose | ||
) |
Definition at line 50 of file Utf8Test.php.
Referenced by Sqlite\checkSqlSyntax(), Preferences\getOptionFromUser(), UserrightsPage\groupCheckboxes(), and testLine().
$exceptions |
array( # Tests that should mark invalid characters due to using long # sequences beyond what is now considered legal. '2.1.5', '2.1.6', '2.2.4', '2.2.5', '2.2.6', '2.3.5', # Literal 0xffff, which is illegal '2.2.3' )
Definition at line 72 of file Utf8Test.php.
Referenced by testLine(), and wfIsBadImage().
$failed = 0 |
Definition at line 90 of file Utf8Test.php.
Referenced by TestRecorder\reportPercentage(), and testLine().
array( # These two lines actually seem to be corrupt '2.1.1', '2.2.1' )
Definition at line 68 of file Utf8Test.php.
Referenced by DatabaseOracle\reportQueryError().
$in = fopen( "UTF-8-test.txt", "rt" ) |
Definition at line 42 of file Utf8Test.php.
$longTests |
array( # These tests span multiple lines '3.1.9', '3.2.1', '3.2.2', '3.2.3', '3.2.4', '3.2.5', '3.4' )
Definition at line 80 of file Utf8Test.php.
$section = null |
Definition at line 88 of file Utf8Test.php.
Referenced by LBFactory_Multi\__construct(), ParserOutput\addHeadItem(), SkinTemplate\buildContentNavigationUrls(), Skin\doEditSectionLink(), ApiEditPage\execute(), VectorTemplate\execute(), Linker\formatAutocommentsCallback(), Linker\formatTemplates(), Linker\generateTOC(), LBFactory_Multi\getMainLB(), RawAction\getRawText(), WikitextContent\getSection(), LBFactory_Multi\getSectionForWiki(), Exif\makeFilteredData(), LBFactory_Multi\newMainLB(), Sanitizer\normalizeSectionNameWhitespace(), EditPageTest\provideAutoMerge(), WikitextContent\replaceSection(), EditPageTest\testExtractSectionTitle(), NewParserTest\testParserTest(), EditPageTest\testSectionEdit(), Exif\validate(), and wfStreamThumb().
$sectionTests = array( '3.4' ) |
Definition at line 86 of file Utf8Test.php.
$success = 0 |
Definition at line 91 of file Utf8Test.php.
Referenced by ApiTestCaseUpload\deleteFileByContent(), MovePageForm\doSubmit(), FixDoubleRedirects\execute(), PurgeParserCache\execute(), DeleteBatch\execute(), CompressOld\execute(), MessageBlobStore\insertMessageBlob(), Linker\makeExternalImage(), Linker\makeExternalLink(), BagOStuff\mergeViaCas(), BagOStuff\mergeViaLock(), ApiMove\moveSubpages(), Title\moveSubpages(), LoadBalancer\pingAll(), WatchedItem\removeWatch(), TestRecorder\reportPercentage(), DatabaseOracle\selectDB(), testLine(), and MessageBlobStore\updateMessage().
$test = '' |
Definition at line 89 of file Utf8Test.php.
Referenced by ImageCleanup\buildSafeTitle(), UpdateMediaWiki\compatChecks(), BenchmarkDeleteTruncate\execute(), EditPageTest\provideAutoMerge(), DbTestPreviewer\record(), DbTestRecorder\record(), DbTestPreviewer\report(), testLine(), and BenchmarkDeleteTruncate\truncate().
$total = 0 |
Definition at line 92 of file Utf8Test.php.
Referenced by CheckStorage\check(), CopyJobQueue\copyJobs(), ReassignEdits\doReassignEdits(), CountMessages\execute(), ShowCacheStats\execute(), DeleteImageCache\execute(), CopyJobQueue\execute(), RefreshImageMetadata\execute(), RebuildLocalisationCache\execute(), statsOutput\formatPercent(), wikiStatsOutput\formatPercent(), Profiler\getFunctionReport(), Fallback\mb_strlen(), SpecialSpecialpages\outputPageList(), CheckLanguageCLI\outputText(), TestRecorder\reportPercentage(), SearchSqlite\searchInternal(), SearchMySQL\searchInternal(), and testLine().
$verbose = false |
Definition at line 39 of file Utf8Test.php.
Referenced by RefreshImageMetadata\execute(), and testLine().
Definition at line 30 of file Utf8Test.php.