MediaWiki
REL1_20
|
This file host two test case classes for the MediaWiki FormOptions class: More...
Public Member Functions | |
testGuessTypeDetection () | |
Reuse helpers above assertGuessBoolean assertGuessInt assertGuessString. | |
testGuessTypeOnArrayThrowException () | |
MWException | |
testGuessTypeOnNullThrowException () | |
MWException | |
Protected Member Functions | |
setUp () | |
Instanciates a FormOptions object to play with. | |
Protected Attributes | |
FormOptions | $object |
Private Member Functions | |
assertGuessBoolean ($data) | |
Helpers for testGuessType() | |
assertGuessInt ($data) | |
Helpers for testGuessType() | |
assertGuessString ($data) | |
Helpers for testGuessType() | |
guess ($expected, $data) | |
Generic helper. |
This file host two test case classes for the MediaWiki FormOptions class:
The split let us take advantage of setting up a fixture for the methods tests. Test class for FormOptions methods. Generated by PHPUnit on 2011-02-28 at 20:46:27.
Copyright © 2011, Antoine Musso
Definition at line 19 of file FormOptionsTest.php.
FormOptionsTest::assertGuessBoolean | ( | $ | data | ) | [private] |
Helpers for testGuessType()
Definition at line 40 of file FormOptionsTest.php.
References FormOptions\BOOL, and guess().
FormOptionsTest::assertGuessInt | ( | $ | data | ) | [private] |
Helpers for testGuessType()
Definition at line 43 of file FormOptionsTest.php.
FormOptionsTest::assertGuessString | ( | $ | data | ) | [private] |
Helpers for testGuessType()
Definition at line 46 of file FormOptionsTest.php.
FormOptionsTest::guess | ( | $ | expected, |
$ | data | ||
) | [private] |
Generic helper.
Definition at line 51 of file FormOptionsTest.php.
Referenced by assertGuessBoolean().
FormOptionsTest::setUp | ( | ) | [protected] |
Instanciates a FormOptions object to play with.
FormOptions::add() is tested by the class FormOptionsInitializationTest so we assume the function is well tested already an use it to create the fixture.
Definition at line 30 of file FormOptionsTest.php.
Reuse helpers above assertGuessBoolean assertGuessInt assertGuessString.
Definition at line 62 of file FormOptionsTest.php.
Definition at line 80 of file FormOptionsTest.php.
Definition at line 86 of file FormOptionsTest.php.
FormOptions FormOptionsTest::$object [protected] |
Definition at line 22 of file FormOptionsTest.php.