MediaWiki
1.23.2
|
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 brion @pob ox.co mhttps://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(), CategoryViewer\columnList(), HTMLCheckMatrix\filterDataForSubmit(), HTMLCheckMatrix\getInputHTML(), Preferences\getOptionFromUser(), User\getOptionKinds(), UserrightsPage\groupCheckboxes(), testLine(), DatabaseMysqlBase\upsert(), and HTMLCheckMatrix\validate().
$exceptions |
Definition at line 72 of file Utf8Test.php.
Referenced by ResourceLoader\makeModuleResponse(), ApiMain\matchOrigin(), and testLine().
$failed = 0 |
Definition at line 90 of file Utf8Test.php.
Referenced by JobQueueRedis\doBatchPush(), JobQueueFederated\doDelete(), JobQueueFederated\doGetSiblingQueueSizes(), JobQueueFederated\doGetSiblingQueuesWithJobs(), JobQueueFederated\doIsEmpty(), JobQueueFederated\doPop(), JobQueueFederated\doWaitForBackups(), JobQueueFederated\getCrossPartitionSum(), TestRecorder\reportPercentage(), and testLine().
Definition at line 68 of file Utf8Test.php.
Referenced by FindHooks\printArray(), DatabaseOracle\reportQueryError(), and DatabaseBase\reportQueryError().
$in = fopen( "UTF-8-test.txt", "rt" ) |
Definition at line 42 of file Utf8Test.php.
Referenced by lessc\cachedCompile(), lessc\ccompile(), lessc\cexecute(), lessc\checkedCompile(), LanguageLa\convertGrammar(), Exif\debug(), SiteConfiguration\doReplace(), ParserTestParserHook\dumpHook(), TextStatsOutput\element(), CsvStatsOutput\element(), LanguageEo\iconv(), Language\iconv(), Exif\isASCII(), Exif\isByte(), Exif\isLong(), Exif\isRational(), Exif\isShort(), Exif\isSlong(), Exif\isSrational(), Exif\isUndefined(), ParserTestParserHook\staticTagHook(), DatabaseMysqlBaseTest\testAddIdentifierQuotes(), and ExtraParserTest\testCleanSigInSig().
$longTests |
Definition at line 80 of file Utf8Test.php.
$section = null |
Definition at line 88 of file Utf8Test.php.
Referenced by JobQueueFederated\__construct(), LBFactoryMulti\__construct(), HTMLForm\__construct(), PoolCounterRedis\acquireForAnyone(), PoolCounterRedis\acquireForMe(), RedisBagOStuff\add(), HTMLForm\addFooterText(), CategoryViewer\addFragmentToTitle(), HTMLForm\addHeaderText(), ParserOutput\addHeadItem(), SwiftFileBackend\addMissingMetadata(), FileOpBatch\attempt(), SkinTemplate\buildContentNavigationUrls(), RedisBagOStuff\cas(), FileBackendStore\concatenate(), FileBackendStore\copyInternal(), FileBackendStore\createInternal(), RedisBagOStuff\delete(), FileBackendStore\deleteInternal(), FileBackendStore\describeInternal(), HTMLForm\displaySection(), FileBackendStore\doClean(), Skin\doEditSectionLink(), FileBackendStore\doOperationsInternal(), FileBackendStore\doPrepare(), FileBackendStore\doPublish(), FileBackendStore\doQuickOperationsInternal(), FileBackendStore\doSecure(), ApiEditPage\execute(), VectorTemplate\execute(), FileBackendStore\executeOpHandlesInternal(), FileBackendStore\fileExists(), Linker\formatAutocommentsCallback(), Linker\formatTemplates(), Linker\generateTOC(), RedisBagOStuff\get(), MessageCache\get(), SwiftFileBackend\getContainerStat(), SwiftFileBackend\getDirListPageInternal(), FileBackendStore\getFileContentsMulti(), SwiftFileBackend\getFileListPageInternal(), FileBackendStore\getFileProps(), FileBackendStore\getFileSha1Base36(), FileBackendStore\getFileSize(), FileBackendStore\getFileStat(), FileBackendStore\getFileTimestamp(), FileBackendStore\getFileXAttributes(), LoadMonitorMySQL\getLagTimes(), FileBackendStore\getLocalCopyMulti(), FileBackendStore\getLocalReferenceMulti(), LBFactoryMulti\getMainLB(), RedisBagOStuff\getMulti(), RawAction\getRawText(), LoadBalancer\getReaderIndex(), WikitextContent\getSection(), LBFactoryMulti\getSectionForWiki(), JobQueue\getSiblingQueueSizes(), JobQueue\getSiblingQueuesWithJobs(), RedisBagOStuff\incr(), RunJobs\loadBackoffs(), Exif\makeFilteredData(), FileBackendStore\moveInternal(), LBFactoryMulti\newMainLB(), Sanitizer\normalizeSectionNameWhitespace(), FileBackendStore\preloadFileStat(), FileBackendStore\primeContainerCache(), FileBackendStore\primeFileCache(), EditPageTest\provideAutoMerge(), PoolCounterRedis\release(), WikitextContent\replaceSection(), WikiPage\replaceSection(), WikiPage\replaceSectionContent(), RedisBagOStuff\set(), HTMLForm\setFooterText(), HTMLForm\setHeaderText(), SpecialSearch\showHit(), FileBackendStore\storeInternal(), FileBackendStore\streamFile(), RunJobs\syncBackoffs(), EditPageTest\testExtractSectionTitle(), EditPageTest\testSectionEdit(), MediaWiki\triggerJobs(), 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 ORMTable\addToField(), LocalFileRestoreBatch\cleanupFailedBatch(), ApiTestCaseUpload\deleteFileByContent(), DatabaseMssql\doQuery(), MovePageForm\doSubmit(), FixDoubleRedirects\execute(), PurgeParserCache\execute(), GenerateJsonI18n\execute(), DeleteBatch\execute(), CompressOld\execute(), SpecialRunJobs\executeJobs(), ORMRow\insert(), MessageBlobStore\insertMessageBlob(), ORMTable\insertRow(), MessageCache\load(), Linker\makeExternalImage(), Linker\makeExternalLink(), BagOStuff\mergeViaCas(), BagOStuff\mergeViaLock(), ApiMove\moveSubpages(), Title\moveSubpages(), DatabaseMysqlBase\open(), LoadBalancer\pingAll(), ORMRow\remove(), ORMTable\removeRow(), WatchedItem\removeWatch(), TestRecorder\reportPercentage(), ORMRow\saveExisting(), SiteSQLStore\saveSites(), MessageCache\saveToCaches(), DatabaseOracle\selectDB(), testLine(), SpecialUpload\unsaveUploadedFile(), MessageBlobStore\updateMessage(), and ORMTable\updateRow().
$test = '' |
Definition at line 89 of file Utf8Test.php.
Referenced by ImageCleanup\buildSafeTitle(), User\compareSecrets(), UpdateMediaWiki\compatChecks(), Installer\envCheckBrokenXML(), BenchmarkDeleteTruncate\execute(), MediaWikiPHPUnitTestListener\getTestName(), 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(), LocalFileMoveBatch\doDBUpdates(), WikiPage\doEditUpdates(), ReassignEdits\doReassignEdits(), CountMessages\execute(), ShowCacheStats\execute(), DeleteImageCache\execute(), CopyJobQueue\execute(), RefreshImageMetadata\execute(), RebuildLocalisationCache\execute(), StatsOutput\formatPercent(), WikiStatsOutput\formatPercent(), Profiler\getFunctionReport(), Profiler\getRawData(), Fallback\mb_strlen(), SpecialSpecialpages\outputPageList(), CheckLanguageCLI\outputText(), TestRecorder\reportPercentage(), SearchSqlite\searchInternal(), SearchMySQL\searchInternal(), and testLine().
Definition at line 39 of file Utf8Test.php.
Referenced by RefreshImageMetadata\execute(), and testLine().
Definition at line 30 of file Utf8Test.php.