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

List of all members.

Public Member Functions

 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.

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

 $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 45 of file XmlSelectTest.php.

References $name, and array().

XmlSelectTest::setUp ( ) [protected]

setUp and tearDown should (where significant) happen in reverse order.

Reimplemented from MediaWikiTestCase.

Definition at line 7 of file XmlSelectTest.php.

References array(), select(), and MediaWikiTestCase\setMwGlobals().

XmlSelectTest::tearDown ( ) [protected]

Reimplemented from MediaWikiTestCase.

Definition at line 16 of file XmlSelectTest.php.

References select().

Definition at line 65 of file XmlSelectTest.php.

References select().

Definition at line 70 of file XmlSelectTest.php.

References select().

Definition at line 75 of file XmlSelectTest.php.

References select().

Definition at line 80 of file XmlSelectTest.php.

References select().

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

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

Definition at line 31 of file XmlSelectTest.php.

References $name, and select().

Definition at line 23 of file XmlSelectTest.php.

References select().

Definition at line 114 of file XmlSelectTest.php.

References select().

Definition at line 87 of file XmlSelectTest.php.

References select().

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 103 of file XmlSelectTest.php.

References options(), and select().


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: