MediaWiki
REL1_19
|
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 |
if(php_sapi_name()!= 'cli') | $in = fopen( "UTF-8-test.txt", "rt" ) |
$longTests | |
$section = null | |
$sectionTests = array( '3.4' ) | |
$success = 0 | |
$test = '' | |
$total = 0 | |
$verbose = false | |
while(false!==($line=fgets($in))) | if ($failed) |
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 | ||
) |
if (!$in) $columns = 0 |
Definition at line 49 of file Utf8Test.php.
Referenced by Sqlite\checkSqlSyntax(), CategoryViewer\columnList(), 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 71 of file Utf8Test.php.
Referenced by ResourceLoader\makeModuleResponse(), testLine(), and wfIsBadImage().
$failed = 0 |
Definition at line 89 of file Utf8Test.php.
Referenced by TestRecorder\reportPercentage(), and testLine().
while (false!==($line=fgets($in))) if (!$columns) $ignore |
array( # These two lines actually seem to be corrupt '2.1.1', '2.2.1' )
Definition at line 67 of file Utf8Test.php.
Referenced by DatabasePostgres\insert(), DatabaseIbm_db2\insert(), DatabasePostgres\insertSelect(), DatabaseOracle\reportQueryError(), and DatabaseBase\reportQueryError().
if (php_sapi_name()!= 'cli') $in = fopen( "UTF-8-test.txt", "rt" ) |
Definition at line 41 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 79 of file Utf8Test.php.
$section = null |
Definition at line 87 of file Utf8Test.php.
Referenced by LBFactory_Multi\__construct(), HTMLForm\__construct(), HTMLForm\addFooterText(), CategoryViewer\addFragmentToTitle(), HTMLForm\addHeaderText(), ParserOutput\addHeadItem(), SkinTemplate\buildContentNavigationUrls(), HTMLForm\displaySection(), Skin\doEditSectionLink(), ApiEditPage\execute(), VectorTemplate\execute(), Parser\extractSections(), Linker\formatAutocommentsCallback(), Linker\formatTemplates(), Linker\generateTOC(), LBFactory_Multi\getMainLB(), RawAction\getRawText(), Parser\getSection(), LBFactory_Multi\getSectionForWiki(), Exif\makeFilteredData(), LBFactory_Multi\newMainLB(), Sanitizer\normalizeSectionNameWhitespace(), WikiPage\replaceSection(), Parser\replaceSection(), ParserTest\runTest(), HTMLForm\setFooterText(), HTMLForm\setHeaderText(), SpecialSearch\showHit(), EditPageTest\testExtractSectionTitle(), NewParserTest\testParserTest(), and Exif\validate().
$sectionTests = array( '3.4' ) |
Definition at line 85 of file Utf8Test.php.
$success = 0 |
Definition at line 90 of file Utf8Test.php.
Referenced by LocalFileRestoreBatch\cleanupFailedBatch(), ApiTestCaseUpload\deleteFileByContent(), MediaWiki\doJobs(), FileBackendMultiWrite\doOperationsInternal(), MovePageForm\doSubmit(), PurgeParserCache\execute(), ApiWatch\execute(), FixDoubleRedirects\execute(), DeleteBatch\execute(), CompressOld\execute(), MessageBlobStore\insertMessageBlob(), Title\invalidateCache(), MessageCache\load(), Linker\makeExternalImage(), Linker\makeExternalLink(), ApiMove\moveSubpages(), Title\moveSubpages(), DatabaseMysql\open(), LoadBalancer\pingAll(), WatchedItem\removeWatch(), TestRecorder\reportPercentage(), MessageCache\saveToCaches(), DatabaseOracle\selectDB(), testLine(), SpecialUpload\unsaveUploadedFile(), MessageBlobStore\updateMessage(), and MakeLanguageSpec\writeJavascriptFile().
$test = '' |
Definition at line 88 of file Utf8Test.php.
Referenced by ImageCleanup\buildSafeTitle(), User\compareSecrets(), UpdateMediaWiki\compatChecks(), Installer\envCheckBrokenXML(), Installer\envCheckPHP531(), BenchmarkDeleteTruncate\execute(), DbTestPreviewer\record(), DbTestRecorder\record(), DbTestPreviewer\report(), testLine(), and BenchmarkDeleteTruncate\truncate().
$total = 0 |
Definition at line 91 of file Utf8Test.php.
Referenced by CheckStorage\check(), LocalFileMoveBatch\doDBUpdates(), WikiPage\doEditUpdates(), ReassignEdits\doReassignEdits(), CountMessages\execute(), DeleteImageCache\execute(), CacheStats\execute(), RebuildLocalisationCache\execute(), RefreshImageMetadata\execute(), statsOutput\formatPercent(), wikiStatsOutput\formatPercent(), Profiler\getFunctionReport(), Fallback\mb_strlen(), SpecialSpecialpages\outputPageList(), TestRecorder\reportPercentage(), SearchMySQL\searchInternal(), SearchSqlite\searchInternal(), and testLine().
$verbose = false |
Definition at line 35 of file Utf8Test.php.
Referenced by RefreshImageMetadata\execute(), and testLine().
while (false!==($line=fgets($in))) if($failed) |
Definition at line 116 of file Utf8Test.php.