Antoine Musso
28bab8ff2e
Complete coverage of Xml::DateMenu()
...
r81605 was not hitting all possible conditional tests. Verified with:
php phpunit.php --configuration suite.xml \
--coverage-html /tmp/datecover \
--filter DateMenu
Tests:
PHPUnit 3.5.10 by Sebastian Bergmann.
.
Time: 3 seconds, Memory: 27.50Mb
OK (1 test, 5 assertions)
2011-02-06 22:10:48 +00:00
Antoine Musso
979ebc5189
Tests for Xml::DateMenu()
2011-02-06 21:23:12 +00:00
Antoine Musso
ddd8f91a5b
Tests for XmlSelect::addOption()
...
PHPUnit seems to only accept one class per test file. This patch move the
XmlSelect class to a new file.
It also add some assertions for XmlSelect::addOption(). Please review them
carefully! Although the assertions are fine:
OK (5 tests, 5 assertions)
I am not sure they are the expected behaviour.
2011-02-05 23:41:29 +00:00
Chad Horohoe
447529064b
* verbose and color default output from phpunit
...
* Make a bunch of tests subclass MediaWikiTestCase
* Parser tests and ResourceLoaderTest can't subclass it yet due to various issues
2010-12-28 18:17:16 +00:00
Chad Horohoe
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.
2010-12-14 16:26:35 +00:00