Tests for XmlSelect::addOption()
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 5 Feb 2011 23:41:29 +0000 (23:41 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 5 Feb 2011 23:41:29 +0000 (23:41 +0000)
commitddd8f91a5b167f55e68b1f2da730f8b1c1e62029
tree3929fd568f95d6a56baa0d14104d10890b80ba11
parent1455b81f0c666d5f5755c6d23acee7301ccc588c
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.
tests/phpunit/includes/XmlSelectTest.php [new file with mode: 0644]
tests/phpunit/includes/XmlTest.php