Brian Wolff 6eb6aa314a SECURITY: Whitelist DTD declaration in SVG 8 年之前
..
data 3ed926d89e SECURITY: Don't allow entities in XMP 10 年之前
docs 7c78f7624f Clean up ExportDemoTest 11 年之前
includes 6eb6aa314a SECURITY: Whitelist DTD declaration in SVG 7 年之前
languages 8e0c0a9fc9 Preparations for migrating core to use JSON based i18n 11 年之前
maintenance 5dbfd5bf80 Fixed spacing 11 年之前
mocks 9ee2b6f7fc Added a MemoryFileBackend class and made MockFileBackend subclass it 11 年之前
skins 3a6ea89d4a Add link to PD help translatable pages from sidebar 11 年之前
structure 39bf3bda1a Make AutoLoaderTest handle namespaces 9 年之前
suites 045d582b66 Merge "Add a LESS test suite" 11 年之前
tests 4b3b1000c0 Throw exception when trying to stash unset globals 11 年之前
LessFileCompilationTest.php 13f3e21e9c Add a LESS test suite 11 年之前
Makefile 469426263e (bug 43808) PHPUnit Makefile is now compatible with BSD make. 12 年之前
MediaWikiLangTestCase.php 47d1060398 Remove is_numeric check from Title::checkUserBlock 11 年之前
MediaWikiPHPUnitCommand.php 5dbfd5bf80 Fixed spacing 11 年之前
MediaWikiPHPUnitTestListener.php 23fab68274 Fix spacing after @param and friends in comments 11 年之前
MediaWikiTestCase.php 2000672ac3 Fixed spacing 11 年之前
README 1e065c2a14 Wrong URL in README 14 年之前
ResourceLoaderTestCase.php 1a67f2dd5f tests: Add unit tests for ResourceLoaderStartupModule 11 年之前
TODO 732e3f1271 Remove notes about being destructive. We work properly on cloned tables now 13 年之前
bootstrap.php beb1c4a0ec phpcs: More require/include is not a function 11 年之前
install-phpunit.sh ca95efa952 make error message pretty 12 年之前
phpunit.php 847f120856 Prevent GC during phpunit shutdown 10 年之前
run-tests.bat 23f69f10ed Per wikitech-l discussion: Move tests from maintenance/tests/ to tests/. They're not strictly maintenance scripts, and some people want to do a selective checkout that doesn't include the tests. There's still debate on whether we should include these in the release downloads, but we had a pretty firm consensus to move this. 14 年之前
suite.xml aa7717dff6 tests: let us select/exclude ParserTests 9 年之前

README

== MediaWiki PHPUnit Tests ==

The unit tests for MediaWiki are implemented using the PHPUnit testing
framework and require PHPUnit to run.


=== WARNING ===

Some of the unit tests are DESTRUCTIVE and WILL ALTER YOUR WIKI'S CONTENTS.

DO NOT RUN THESE TESTS ON A PRODUCTION SYSTEM OR ON ANY SYSTEM WHERE YOU NEED
TO RETAIN YOUR DATA.


== Installation ==

If PHPUnit is not installed, follow the installation instructions in the
PHPUnit Manual at:

http://www.phpunit.de/manual/current/en/installation.html

- or -

On Unix-like operating systems, run:

make install


== Running tests ==

The tests are run from your operating system's command line.

Ensure that you are in the tests/phpunit directory of your MediaWiki
installation.


On Unix-like operating systems, the tests runs are controlled with a makefile.
Run command:

make help

for a full list of options for running tests.


On Windows-family operating systems, run the 'run-tests.bat' batch file.


=== Writing tests ===

A guide to writing unit tests for MediaWiki can be found at:

http://mediawiki.org/wiki/Unit_Testing