aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/GlobalFunctions/wfBaseNameTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Load GlobalFunctions.php to tests/phpunit/bootstrap.phpAmir Sarabadani2019-07-141-40/+0
| | | | | | | That mostly enables testing global functions Bug: T87781 Change-Id: Ib42c56a67926ebcdba53f4c6c54a5bff98cb77a3
* Revert "Separate MediaWiki unit and integration tests"Legoktm2019-06-131-0/+40
| | | | | | | | This reverts commit 0a2b996278e57a8b8c5377cd3a3eaa54f993d4a9. Reason for revert: Broke postgres tests. Change-Id: I27d8e0c807ad5f0748b9611a4f3df84cc213fbe1
* Separate MediaWiki unit and integration testsMáté Szabó2019-06-131-40/+0
| | | | | | | | | | | | | | | | | | | | | This changeset implements T89432 and related tickets and is based on exploration done at the Prague Hackathon. The goal is to identify tests in MediaWiki core that can be run without having to install & configure MediaWiki and its dependencies, and provide a way to execute these tests via the standard phpunit entry point, allowing for faster development and integration with existing tooling like IDEs. The initial set of tests that met these criteria were identified using the work Amir did in I88822667693d9e00ac3d4639c87bc24e5083e5e8. These tests were then moved into a new subdirectory under phpunit/ and organized into a separate test suite. The environment for this suite is set up via a PHPUnit bootstrap file without a custom entry point. You can execute these tests by running: $ vendor/bin/phpunit -d memory_limit=512M -c tests/phpunit/unit-tests.xml Bug: T89432 Bug: T87781 Bug: T84948 Change-Id: Iad01033a0548afd4d2a6f2c1ef6fcc9debf72c0d
* Convert all array() syntax to []Kunal Mehta2016-02-171-20/+20
| | | | | | | | | | Per wikitech-l consensus: https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html Notes: * Disabled CallTimePassByReference due to false positives (T127163) Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
* Mark relevant tests with @group GlobalFunctionsMax Semenik2014-07-201-0/+1
| | | | Change-Id: I4133ad7e5e042a8c24d4836ae2bf9f1880a56e70
* Pass phpcs-strict on tests/phpunit/GlobalFunctions/Siebrand Mazeland2014-04-241-2/+5
| | | | Change-Id: I2acc99ac96d8c738668fae2ecc9a0cee1b695f00
* @covers for all GlobalFunc testsaddshore2013-10-241-1/+1
| | | | | | | Also split 2 tests off into their correct test classes, this methods are clearly no longer global functions Change-Id: I482433f3099e72507a766e85d9576ff36e58b9ad
* Fix scope on all /phpunit test methodsaddshore2013-10-241-1/+1
| | | | Change-Id: I3ce92463d485a0fb23e464e9a8059330f32d79af
* Tests: Make phpunit providers "public static".Timo Tijhof2013-03-221-1/+1
| | | | | | | Follows-up I9d2b148e57 (including phpunit/languages this time). Bug: 46434 Change-Id: I30e5efcd88c516121c454676bd7a18f9b7c8fca6
* phpcs: Naming of GlobalFunctions tests classes.Timo Tijhof2013-02-221-1/+1
| | | | | | | | | | | | | Code convensions: Class names should be UpperCamelCase. And for PHPUnit: Class name should end in 'Test'. Class name should match file name. Also made headers and spacing a bit more consistent. Change-Id: Id7b6cec7e552240de44386b4759b57c2d37a39d1
* Update formattingSiebrand Mazeland2013-02-141-2/+2
| | | | | | 1 of n. Change-Id: I852729f08bbb0c5e39c2db44362ccdc7f59dcc08
* Break wfBCP47, wfBaseName and wfTimestamp testsAntoine Musso2012-01-091-0/+36
| | | | | | | | | | | They are now in their own files. Rewrite wfTimestamp tests to use data providers like it should. Originally commited without history by ^demon as r108420 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/108428
* revert r108420, will split with historyAntoine Musso2012-01-091-36/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/108427
* * Drop old parserTests.php way of running parser tests. You can run parser ↵Chad Horohoe2012-01-091-0/+36
tests via --group Parser or specifying the includes/parser/MediaWikiParserTest.php test case * Drop now unused various test recorder options -- phpunit outputs its data in lots of machine-readable formats, use those if you need to work with test data * There's still a lot of duplication between NewParserTest::setUp() and MediaWikiTestCase, but hey one step at a time ;-) * All tests pass for me (make phpunit && make parser) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/108420