MediaWiki  REL1_19
XmlSelectTest Class Reference
Inheritance diagram for XmlSelectTest:
Collaboration diagram for XmlSelectTest:

List of all members.

Public Member Functions

 provideConstructionParameters ()
 Provide parameters for testConstructParameters() which use three parameters:
 testAddOption ()
 testAddOptionWithDefault ()
 testAddOptionWithFalse ()
 testAddOptionWithValueZero ()
 testConstructParameters ($name, $id, $default, $expected)
 Parameters are $name (false), $id (false), $default (false) provideConstructionParameters.
 testConstructWithoutParameters ()
 testGetAttributes ()
 testSetDefault ()
 testSetDefaultAfterAddingOptions ()
 Adding default later on should set the correct selection or raise an exception.

Protected Member Functions

 setUp ()
 tearDown ()

Protected Attributes

 $select

Detailed Description

Definition at line 4 of file XmlSelectTest.php.


Member Function Documentation

Provide parameters for testConstructParameters() which use three parameters:

  • $name (default: false)
  • $id (default: false)
  • $default (default: false) Provides a fourth parameters representing the expected HTML output

Definition at line 38 of file XmlSelectTest.php.

XmlSelectTest::setUp ( ) [protected]

Definition at line 7 of file XmlSelectTest.php.

XmlSelectTest::tearDown ( ) [protected]

Definition at line 10 of file XmlSelectTest.php.

Definition at line 58 of file XmlSelectTest.php.

XmlSelectTest::testConstructParameters ( name,
id,
default,
expected 
)

Parameters are $name (false), $id (false), $default (false) provideConstructionParameters.

Definition at line 24 of file XmlSelectTest.php.

Definition at line 103 of file XmlSelectTest.php.

Definition at line 76 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()

Definition at line 92 of file XmlSelectTest.php.


Member Data Documentation

XmlSelectTest::$select [protected]

Definition at line 5 of file XmlSelectTest.php.


The documentation for this class was generated from the following file: