* Removed require/require_once from maintenance scripts where possible, replaced...
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 25 Jun 2010 02:55:51 +0000 (02:55 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 25 Jun 2010 02:55:51 +0000 (02:55 +0000)
commit752046eecf1a5cf71b640be3c42bf2a02c03d9d8
treed5f8befb280b86fc36479592e4b41b5b9b3fb8d2
parente38132ec25a268c5db83d10b0e50ebee62c71cc8
* Removed require/require_once from maintenance scripts where possible, replaced by the AutoLoader, since register_globals vulnerabilities and inappropriate include_path dependencies are so common.
* Rearranged PHPUnit startup so that MediaWiki can be started from the file scope, as required by Setup.php and other core MediaWiki startup files. The custom entry point maintenance/tests/phpunit starts MediaWiki and then passes its arguments through to PHPUnit.
* Moved the parser test tag hooks into classes and moved their registration to parserTests.inc, to allow autoloading.
* Renamed ApiSetup to ApiTestSetup, MediaWiki_Setup to MediaWikiTestSetup, PTShell to ParserTestSuiteBackend.
* Moved command-line initialisation code from the file scope of parserTests.inc to parserTests.php to allow autoloading
* Rewrote the interface between PHPUnit and the parser tests. Removed all the hacks designed to make the rest of the PHPUnit tests work without proper teardown of the parser test environment. Moved the PHPUnit_Framework_TestSuite subclass to a file that's not scanned by PHPUnit, to avoid "no tests found" warnings".
* Removed the {{NUMBEROFARTICLES}} parser test, too hard to make it work consistently.
21 files changed:
includes/AutoLoader.php
maintenance/language/diffLanguage.php
maintenance/parserTests.inc
maintenance/parserTests.php
maintenance/parserTests.txt
maintenance/parserTestsParserHook.php
maintenance/parserTestsStaticParserHook.php
maintenance/tests/ApiSetup.php
maintenance/tests/ApiTest.php
maintenance/tests/ApiWatchTest.php
maintenance/tests/Makefile
maintenance/tests/MediaWikiParserTest.php
maintenance/tests/MediaWiki_Setup.php
maintenance/tests/ParserHelpers.php [new file with mode: 0644]
maintenance/tests/SearchDbTest.php
maintenance/tests/SearchEngineTest.php
maintenance/tests/UploadFromUrlTest.php
maintenance/tests/UploadFromUrlTestSuite.php
maintenance/tests/bootstrap.php
maintenance/tests/phpunit [new file with mode: 0755]
maintenance/tests/phpunit.xml