MediaWiki
REL1_22
|
Public Member Functions | |
testAddOption () | |
XmlSelect::addOption | |
testAddOptionWithDefault () | |
XmlSelect::addOption | |
testAddOptionWithFalse () | |
XmlSelect::addOption | |
testAddOptionWithValueZero () | |
XmlSelect::addOption | |
testConstructParameters ($name, $id, $default, $expected) | |
Parameters are $name (false), $id (false), $default (false) provideConstructionParameters XmlSelect::__construct. | |
testConstructWithoutParameters () | |
XmlSelect::__construct | |
testGetAttributes () | |
XmlSelect::setAttribute XmlSelect::getAttribute | |
testSetDefault () | |
XmlSelect::setDefault | |
testSetDefaultAfterAddingOptions () | |
Adding default later on should set the correct selection or raise an exception. | |
Static Public Member Functions | |
static | provideConstructionParameters () |
Provide parameters for testConstructParameters() which use three parameters: | |
Protected Member Functions | |
setUp () | |
setUp and tearDown should (where significant) happen in reverse order. | |
tearDown () | |
Protected Attributes | |
XmlSelect | $select |
Definition at line 6 of file XmlSelectTest.php.
static XmlSelectTest::provideConstructionParameters | ( | ) | [static] |
Provide parameters for testConstructParameters() which use three parameters:
Definition at line 50 of file XmlSelectTest.php.
XmlSelectTest::setUp | ( | ) | [protected] |
setUp and tearDown should (where significant) happen in reverse order.
Reimplemented from MediaWikiTestCase.
Definition at line 12 of file XmlSelectTest.php.
References array(), select(), and MediaWikiTestCase\setMwGlobals().
XmlSelectTest::tearDown | ( | ) | [protected] |
Reimplemented from MediaWikiTestCase.
Definition at line 20 of file XmlSelectTest.php.
References select().
Definition at line 72 of file XmlSelectTest.php.
Definition at line 80 of file XmlSelectTest.php.
Definition at line 88 of file XmlSelectTest.php.
Definition at line 96 of file XmlSelectTest.php.
XmlSelectTest::testConstructParameters | ( | $ | name, |
$ | id, | ||
$ | default, | ||
$ | expected | ||
) |
Parameters are $name (false), $id (false), $default (false) provideConstructionParameters XmlSelect::__construct.
Definition at line 37 of file XmlSelectTest.php.
Definition at line 28 of file XmlSelectTest.php.
XmlSelect::setAttribute XmlSelect::getAttribute
Definition at line 136 of file XmlSelectTest.php.
Definition at line 104 of file XmlSelectTest.php.
Adding default later on should set the correct selection or raise an exception.
To handle this, we need to render the options in getHtml() XmlSelect::setDefault
Definition at line 121 of file XmlSelectTest.php.
Definition at line 10 of file XmlSelectTest.php.