Improve PHPUnit code coverage
authorAntoine Musso <hashar@users.mediawiki.org>
Sun, 6 Feb 2011 13:59:06 +0000 (13:59 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sun, 6 Feb 2011 13:59:06 +0000 (13:59 +0000)
commitda4f37facd1ba06a7329aeae683ab555dcb067d6
tree9175574a228e2aaa116292d3ffa9ef200fdee374
parent0a4100da03e96d4b5ad0bddaef6b4b1eb9b2247c
Improve PHPUnit code coverage

XmlJs:
 - simple class == simple test

GlobalFunctions:
 - wfArrayDiff2: simple test, please add more

XmlSelectTest:
 - test for constructor
 - tests for setDefault. Found a potential bug when setting a default after
   options have been added. The default option will not get marked as selected!
   We should change our code to generates HTML for options at rendering time
   or throw an exception that default can not be used if an option is present.

MediaWiki:
 - basic placeholder generated by PHPUnit
 - tests for setVal() / getVal()
tests/phpunit/includes/GlobalTest.php
tests/phpunit/includes/MediaWikiTest.php [new file with mode: 0644]
tests/phpunit/includes/XmlJsTest.php [new file with mode: 0644]
tests/phpunit/includes/XmlSelectTest.php