MediaWiki
REL1_20
|
Other tests for the unicode normalization module. More...
Go to the source code of this file.
Enumerations | |
enum | COMMENT |
enum | SEPARATOR |
Functions | |
getRow ($f) | |
my_assert ($file, $line, $code) | |
normalize_form_c ($c) | |
The following section will be used for testing different normalization methods. | |
normalize_form_c_php ($c) | |
This set of functions is only useful if youve added a param to the following functions to force pure PHP usage. | |
normalize_form_d ($c) | |
normalize_form_d_php ($c) | |
normalize_form_kc ($c) | |
normalize_form_kc_php ($c) | |
normalize_form_kd ($c) | |
normalize_form_kd_php ($c) | |
unichr ($c) | |
unistr ($c) | |
Variables | |
$count = 0 | |
$f = fopen($file, "r") | |
if(php_sapi_name()!= 'cli') | $file = "NormalizationTest.txt" |
$lineNo = 0 | |
if ($f!==false) |
Other tests for the unicode normalization module.
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 UtfNormalTest2.php.
enum COMMENT |
Definition at line 33 of file UtfNormalTest2.php.
enum SEPARATOR |
Definition at line 36 of file UtfNormalTest2.php.
getRow | ( | $ | f | ) |
Definition at line 231 of file UtfNormalTest2.php.
my_assert | ( | $ | file, |
$ | line, | ||
$ | code | ||
) |
Definition at line 91 of file UtfNormalTest2.php.
normalize_form_c | ( | $ | c | ) |
The following section will be used for testing different normalization methods.
Definition at line 69 of file UtfNormalTest2.php.
References UtfNormal\toNFC().
normalize_form_c_php | ( | $ | c | ) |
This set of functions is only useful if youve added a param to the following functions to force pure PHP usage.
I decided not to commit that code since might produce a slowdown in the UTF normalization code just for the sake of these tests. -- hexmode
Definition at line 81 of file UtfNormalTest2.php.
References UtfNormal\toNFC().
normalize_form_d | ( | $ | c | ) |
Definition at line 70 of file UtfNormalTest2.php.
References UtfNormal\toNFD().
normalize_form_d_php | ( | $ | c | ) |
Definition at line 82 of file UtfNormalTest2.php.
References UtfNormal\toNFD().
normalize_form_kc | ( | $ | c | ) |
Definition at line 71 of file UtfNormalTest2.php.
References UtfNormal\toNFKC().
normalize_form_kc_php | ( | $ | c | ) |
Definition at line 83 of file UtfNormalTest2.php.
References UtfNormal\toNFKC().
normalize_form_kd | ( | $ | c | ) |
Definition at line 72 of file UtfNormalTest2.php.
References UtfNormal\toNFKD().
normalize_form_kd_php | ( | $ | c | ) |
Definition at line 84 of file UtfNormalTest2.php.
References UtfNormal\toNFKD().
unichr | ( | $ | c | ) |
Definition at line 210 of file UtfNormalTest2.php.
unistr | ( | $ | c | ) |
Definition at line 227 of file UtfNormalTest2.php.
Referenced by getRow().
$count = 0 |
Definition at line 96 of file UtfNormalTest2.php.
Referenced by Benchmarker\bench(), ImageBuilder\buildTable(), Profiler\calltreeCount(), CheckStorage\check(), UserDupes\checkDupes(), LanguageHr\convertPlural(), LanguageMo\convertPlural(), LanguagePl\convertPlural(), LanguageRo\convertPlural(), LanguageSe\convertPlural(), LanguageSh\convertPlural(), LanguageSk\convertPlural(), LanguageSma\convertPlural(), LanguageSr_ec\convertPlural(), LanguageSr_el\convertPlural(), LanguageGv\convertPlural(), LanguageMt\convertPlural(), LanguageSgs\convertPlural(), LanguageHi\convertPlural(), LanguageMg\convertPlural(), LanguageNso\convertPlural(), LanguageTi\convertPlural(), LanguageTl\convertPlural(), LanguageLn\convertPlural(), LanguageMk\convertPlural(), LanguageWa\convertPlural(), LanguageLv\convertPlural(), LanguageLt\convertPlural(), LanguageBe_tarask\convertPlural(), LanguageSl\convertPlural(), LanguageCu\convertPlural(), LanguageHy\convertPlural(), LanguageUk\convertPlural(), LanguageRu\convertPlural(), LanguageKsh\convertPlural(), LanguageSr\convertPlural(), SpecialWatchlist\countItems(), Sanitizer\decodeCharReferencesAndNormalize(), PopulateRevisionLength\doDBUpdates(), FixExtLinksProtocolRelative\doDBUpdates(), PopulateParentId\doDBUpdates(), DeleteArchivedFilesImplementation\doDelete(), DeleteArchivedRevisionsImplementation\doDelete(), DeleteOldRevisions\doDelete(), SpecialRecentChanges\doHeader(), PopulateRevisionSha1\doSha1LegacyUpdates(), PopulateRevisionSha1\doSha1Updates(), MovePageForm\doSubmit(), ApiQueryTags\doTag(), MysqlUpdater\doTemplatelinksUpdate(), DatabasePostgres\estimateRowCount(), StorageTypeStats\execute(), CheckBadRedirects\execute(), ApiQueryLangLinks\execute(), ApiQueryDeletedrevs\execute(), ApiQueryExternalLinks\execute(), ApiQueryIWLinks\execute(), MigrateUserGroup\execute(), ApiQueryFilearchive\execute(), CleanupSpam\execute(), DeleteOrphanedRevisions\execute(), NukePage\execute(), RemoveUnusedAccounts\execute(), ApiQueryBlocks\execute(), ApiQueryContributions\execute(), ApiQueryImageInfo\execute(), ApiQueryLogEvents\execute(), RenameDbPrefix\execute(), ApiQueryAllUsers\execute(), CopyFileBackend\execute(), NukeNS\execute(), UpdateCollation\execute(), ApiQueryRevisions\execute(), CdbWriter_PHP\finish(), MostcategoriesPage\formatResult(), MostinterwikisPage\formatResult(), CategoryPager\formatRow(), CreditsAction\getContributors(), InfoAction\getContributors(), SpecialEditWatchlist\getNormalForm(), WantedPagesPage\getQueryInfo(), RandomImageGenerator\getRandomWordPairs(), User\incEditCount(), DatabaseOracle\indexExists(), TableCleanup\init(), ImageBuilder\init(), RemoveUnusedAccounts\isInactiveAccount(), Fallback\mb_substr(), SpecialMergeHistory\merge(), Title\moveSubpages(), moveToExternal(), SpecialSpecialpages\outputPageList(), CheckLanguageCLI\outputText(), CheckLanguageCLI\outputWiki(), CoreParserFunctions\pagesincategory(), PPFuzzTester\pickEntryPoint(), PurgeRedundantText(), DatabasePostgres\relationExists(), DbTestPreviewer\report(), ApiQueryProtectedTitles\run(), ApiQueryLangBacklinks\run(), ApiQuerySearch\run(), ApiQueryIWBacklinks\run(), ApiQueryImages\run(), ApiQueryWatchlistRaw\run(), ApiQueryExtLinksUsage\run(), ApiQueryCategories\run(), ApiQueryDuplicateFiles\run(), ApiQueryCategoryMembers\run(), ApiQueryAllLinks\run(), ApiQueryAllCategories\run(), ApiQueryWatchlist\run(), ApiQueryAllPages\run(), ApiQueryQueryPage\run(), ApiQueryAllImages\run(), ApiQueryLinks\run(), ApiQueryRandom\run(), ApiQueryRecentChanges\run(), ApiQueryRandom\runQuery(), TableCleanup\runTable(), UserrightsPage\showEditUserGroupsForm(), MovePageForm\showSubpages(), SevenZipStream\stream_read(), UploadSourceAdapter\stream_read(), DatabaseIbm_db2\tableExists(), DatabaseOracle\tableExists(), GenericArrayObjectTest\testUnset(), userOptions\USAGER(), Linker\userToolLinks(), Exif\validate(), and wfIncrStats().
$f = fopen($file, "r") |
Definition at line 38 of file UtfNormalTest2.php.
Referenced by CheckSyntax\buildFileList(), MimeMagic\doGuessMimeType(), ApiParamInfo\execute(), CheckSyntax\execute(), ForeignAPIRepo\fileExistsBatch(), findAuxFile(), JSParser\FunctionDefinition(), DeletedContributionsPage\getForm(), BmpHandler\getImageSize(), MimeMagic\getMediaType(), getRow(), XCFHandler\getXCFMetaData(), JSParser\parse(), StoreBatchTest\storecohort(), FileRepoTest\testFileRepoConstructionOptionCanNotBeAnEmptyArray(), FileRepoTest\testFileRepoConstructionOptionCanNotBeNull(), FileRepoTest\testFileRepoConstructionOptionNeedBackendKey(), FileRepoTest\testFileRepoConstructionOptionNeedNameKey(), FileRepoTest\testFileRepoConstructionWithRequiredOptions(), IPTest\testInvalidIPs(), GlobalTest\testReadOnlySet(), IPTest\testValidIPs(), and wfBacktrace().
if (php_sapi_name()!= 'cli') $file = "NormalizationTest.txt" |
Definition at line 30 of file UtfNormalTest2.php.
Referenced by ExtensionsTestSuite\__construct(), DumpDBZip2Output\__construct(), XmlTypeCheck\__construct(), UnlistedSpecialPage\__construct(), IncludableSpecialPage\__construct(), ImportStreamSource\__construct(), CheckSyntax\addDirectoryContent(), ImageBuilder\addMissingImage(), CheckSyntax\buildFileList(), GIFHandler\canAnimateThumbnail(), ImageHandler\canRender(), TiffHandler\canRender(), CheckSyntax\checkEvilToken(), CheckSyntax\checkFileWithCli(), CheckSyntax\checkFileWithParsekit(), CheckSyntax\checkForMistakes(), CheckSyntax\checkRegex(), Sqlite\checkSqlSyntax(), UploadBase\checkXMLEncodingMissmatch(), XMPTest\dataXMPParse(), ApiDelete\deleteFile(), UploadFromUrlTest\deleteFile(), ApiTestCaseUpload\deleteFileByTitle(), UploadFromUrlTestSuite\deleteFiles(), FileBackendTest\deleteFiles(), MimeMagic\detectMimeType(), UploadBase\detectScript(), UploadBase\detectVirus(), PopulateImageSha1\doDBUpdates(), MimeMagic\doGuessMimeType(), TestFileOpPerformance\doPerfTest(), RevDel_FileList\doPostCommitUpdates(), MovePageForm\doSubmit(), FileBackendTest\doTestDoQuickOperations(), FileBackendTest\doTestGetDirectoryList(), FileBackendTest\doTestGetFileList(), DjVuImage\dump(), DjVuImage\dumpForm(), ApiQueryStashImageInfo\execute(), SpecialFilepath\execute(), CheckAutoLoader\execute(), CheckImages\execute(), CountMessages\execute(), MwSql\execute(), UpdateSpecialPages\execute(), ApiQueryFilearchive\execute(), PatchSql\execute(), DeleteBatch\execute(), UpdateSearchIndex\execute(), MoveBatch\execute(), RefreshImageMetadata\execute(), MWInit\extCompiledPath(), MWInit\extInterpretedPath(), ForeignAPIRepo\fileExistsBatch(), CoreParserFunctions\filepath(), UploadDumper\filterItem(), findAuxFile(), LocalRepo\findBySha1s(), findFiles(), ApiParse\formatCss(), SvgHandler\formatMetadata(), ImageListPager\formatValue(), GenerateNormalizerData\generateArabic(), GenerateCollationData\generateFirstChars(), FindHooks\getBadHooksFromFile(), FindHooks\getBadHooksFromPath(), MWDebug\getCallerDescription(), ImageHandler\getDimensionsString(), getFileCommentFromSourceWiki(), WebInstaller_Document\getFileContents(), MWDebug\getFilesIncluded(), getFileUserFromSourceWiki(), MediaHandler\getGeneralLongDesc(), MediaHandler\getGeneralShortDesc(), FindHooks\getHooksFromFile(), FindHooks\getHooksFromPath(), UploadBase\getImageInfo(), SvgHandler\getImageSize(), DjVuImage\getInfo(), ApiQueryImageInfo\getInfo(), CSSMin\getLocalFileReferences(), MWException\getLogMessage(), ImageHandler\getLongDesc(), SvgHandler\getLongDesc(), MediaHandler\getLongDesc(), CSSMin\getMimeType(), DjVuImage\getMultiPageInfo(), CountMessages\getNumMessages(), DjVuImage\getPageInfo(), ExifBitmapHandler\getRotation(), ResourceLoaderFileModule\getScriptURLsForDebug(), ImageHandler\getShortDesc(), MediaHandler\getShortDesc(), Skin\getSkinNames(), ResourceLoaderFileModule\getStyleURLsForDebug(), ForeignAPIFile\getThumbnails(), MimeMagic\guessMimeType(), ImageBuilder\imageCallback(), BackupReader\importFromFile(), BackupReader\importFromStdin(), MWCryptRand\initialRandomState(), SvgHandler\isAnimatedImage(), CheckSyntax\isSuitableFile(), Title\isValidMoveTarget(), RecompressTracked\logToFile(), ApiBase\makeHelpMsg_callback(), Parser\makeImage(), Linker\makeImageLink(), Linker\makeImageLink2(), Linker\makeMediaLinkFile(), Linker\makeThumbLink2(), Linker\makeThumbLinkObj(), Title\moveTo(), BitmapHandler\mustRender(), ForeignDBFile\newFromRow(), OldLocalFile\newFromRow(), ImageBuilder\oldimageCallback(), UploadDumper\outputItem(), SpecialUploadStash\outputLocallyScaledThumb(), SpecialUploadStash\outputRemoteScaledThumb(), SpecialUploadStash\outputThumbFromStash(), SpecialUploadStash\parseKey(), PruneFileCache\prune_directory(), PurgeDeletedFiles\purgeFromLogType(), ForeignAPIFile\purgeThumbnails(), DjVuImage\readChunk(), CSSMin\remap(), CheckStorage\restoreText(), ApiQueryDuplicateFiles\run(), XmlTypeCheck\run(), ApiQueryAllImages\run(), MessageCache\saveToScript(), EditPage\showIntro(), SpecialUploadStash\showUploads(), DjVuImage\skipChunk(), UploadBase\stashFile(), FileBackendTest\tearDownFiles(), UploadStashTest\testBug29408(), PNGHandlerTest\testGetImageArea(), GIFHandlerTest\testGetImageArea(), GIFHandlerTest\testGetMetadata(), PNGHandlerTest\testGetMetadata(), BitmapScalingTest\testImageArea(), FormatMetadataTest\testInvalidDate(), GIFHandlerTest\testIsAnimanted(), PNGHandlerTest\testIsAnimanted(), ExifRotationTest\testMetadata(), ExifRotationTest\testMetadataNoAutoRotate(), BitmapScalingTest\testNormaliseParams(), ExifRotationTest\testRotationRendering(), ExifRotationTest\testRotationRenderingNoAutoRotate(), BitmapScalingTest\testTooBigImage(), BitmapScalingTest\testTooBigMustRenderImage(), JpegMetadataExtractorTest\testUtf8Comment(), LocalFileTest\testWfLocalFile(), Title\validateFileMoveOperation(), wfBacktrace(), wfErrorLog(), and wfGetPrecompiledData().
$lineNo = 0 |
Definition at line 97 of file UtfNormalTest2.php.
Referenced by my_assert().
Definition at line 98 of file UtfNormalTest2.php.