MediaWiki
REL1_19
|
Test feeds random 16-byte strings to both the pure PHP and ICU-based UtfNormal::cleanUp() code paths, and checks to see if there's a difference. More...
Go to the source code of this file.
Functions | |
donorm ($str) | |
randomString ($length, $nullOk, $ascii=false) | |
showDiffs ($a, $b) | |
wfMsg ($x) | |
Variables | |
$n = 0 | |
$size = 16 | |
if (php_sapi_name()!= 'cli') |
Test feeds random 16-byte strings to both the pure PHP and ICU-based UtfNormal::cleanUp() code paths, and checks to see if there's a difference.
Will run forever until it finds one or you kill it.
Copyright (C) 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 RandomTest.php.
donorm | ( | $ | str | ) |
Definition at line 49 of file RandomTest.php.
References UtfNormal\UNORM_NFC.
randomString | ( | $ | length, |
$ | nullOk, | ||
$ | ascii = false |
||
) |
Definition at line 41 of file RandomTest.php.
References $out.
showDiffs | ( | $ | a, |
$ | b | ||
) |
Definition at line 64 of file RandomTest.php.
References $matches, and echo.
Referenced by ParserTest\__construct(), and ParserTest\showFailure().
wfMsg | ( | $ | x | ) |
Definition at line 60 of file RandomTest.php.
$n = 0 |
Definition at line 80 of file RandomTest.php.
Referenced by _DiffEngine\_diag(), MWMemcached\_flush_read_buffer(), MWMemcached\_load_items(), FileOp\attemptBatch(), JSParser\Block(), SkinTemplate\buildContentNavigationUrls(), File\checkExtensionCompatibility(), LanguageWa\date(), MediaWiki\doJobs(), Installer\envCheckMemory(), GetLagTimes\execute(), BatchedQueryRunner\execute(), AttachLatest\execute(), FixDoubleRedirects\execute(), RunJobs\execute(), ApiQueryUsers\execute(), JSParser\Expression(), ApiQueryRevisions\extractRowInfo(), Parser\extractTagsAndParams(), PathRouter\extractTitle(), UtfNormal\fastCombiningSort(), UtfNormal\fastCompose(), UtfNormal\fastDecompose(), DatabaseMysql\fieldInfo(), DatabaseMssql\fieldName(), DatabaseMysql\fieldName(), DatabaseSqlite\fieldName(), DatabasePostgres\fieldName(), DatabaseOracle\fieldName(), DatabaseIbm_db2\fieldName(), findAuxFile(), FixSlaveDesync\findPageLatestCorruption(), PostgresField\fromText(), IBM_DB2Field\fromText(), ChangesFeed\generateFeed(), RevisionDeleter\getChanges(), ApiParamInfo\getClassInfo(), File\getExtension(), UploadStash\getExtensionForPath(), FormatMetadata\getFormattedData(), SpecialPageFactory\getLocalNameFor(), RandomPage\getNsList(), SpecialExport\getPagesFromCategory(), SpecialExport\getPagesFromNamespace(), Skin\getUndeleteLink(), ZipDirectoryReader\hexDump(), hexSequenceToUtf8(), BagOStuff\incr(), PageArchive\isDeleted(), Title\isDeleted(), UploadBase\isThumbName(), DateFormatter\makeIsoMonth(), SpecialSearch\makeSearchLink(), JSMinPlus\min(), Title\nameOf(), JSParser\nest(), SearchMySQL\normalizeText(), DatabaseMysql\numRows(), DatabasePostgres\numRows(), JSParser\ParenExpression(), JSParser\parse(), JSMinPlus\parseTree(), RebuildTextIndex\populateSearchIndex(), SpecialSearch\powerSearchOptions(), UtfNormal\quickIsNFC(), UtfNormal\quickIsNFCVerify(), EnhancedChangesList\recentChangesBlockGroup(), JSParser\reduce(), Message\replaceParameters(), JSParser\Script(), AjaxResponse\sendHeaders(), SpecialAllpages\showChunk(), SpecialPrefixindex\showPrefixChunk(), JSParser\Statement(), JSParser\Statements(), JSParser\Variables(), wfBaseConvert(), wfCountDown(), wfMsgReplaceArgs(), and OutputPage\wrapWikiMsg().
$size = 16 |
Definition at line 79 of file RandomTest.php.
Referenced by SVGReader\__construct(), ProtectedTitlesPager\__construct(), UploadTest\createFileOfSize(), FileBackendTest\doTestGetFileStat(), OrphanStats\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), ZipDirectoryReader\execute(), ApiTestCaseUpload\fakeUploadChunk(), ApiTestCaseUpload\fakeUploadFile(), CoreParserFunctions\filepath(), ZipDirectoryReader\findOldCentralDirectory(), ZipDirectoryReader\findZip64CentralDirectory(), Language\formatComputingNumbers(), ShortPagesPage\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), Linker\formatRevisionSize(), SpecialProtectedpages\formatRow(), Language\formatSize(), WikiFilePage\getDuplicates(), MWDebug\getFilesIncluded(), ImageHandler\getLongDesc(), SpecialProtectedpages\getSizeLimit(), ZipDirectoryReader\getStructSize(), Preferences\getThumbSizes(), Parser\incrementIncludeSize(), Xml\input(), Xml\inputLabel(), Xml\inputLabelSep(), JpegMetadataExtractor\jpegExtractMarker(), Linker\makeSizeLinkObj(), Block\newLoad(), RecentChange\notifyNew(), ImagePage\openShowImage(), SpecialUploadStash\outputContents(), Xml\password(), PNGMetadataExtractor\read(), ZipDirectoryReader\readCentralDirectory(), RebuildRecentchanges\rebuildRecentChangesTablePass2(), JpegMetadataExtractor\segmentSplitter(), WikiRevision\setSize(), SpecialSearch\showHit(), SpecialProtectedpages\showOptions(), LanguageTest\testFormatSize(), ExifRotationTest\testRotationRendering(), ExifRotationTest\testRotationRenderingNoAutoRotate(), DatabaseMssql\textFieldSize(), DatabasePostgres\textFieldSize(), DatabaseIbm_db2\textFieldSize(), DatabaseBase\textFieldSize(), ZipDirectoryReader\unpack(), wfErrorLog(), and wfExtractThumbParams().
if(php_sapi_name()!= 'cli') |
Definition at line 29 of file RandomTest.php.