MediaWiki
REL1_22
|
Public Member Functions | |
elementInstancesProvider () | |
Returns objects that can serve as elements in the concrete GenericArrayObject deriving class being tested. | |
getInstanceClass () | |
Returns the name of the concrete class being tested. | |
instanceProvider () | |
Provides instances of the concrete class being tested. | |
testAppend (array $elements) | |
elementInstancesProvider | |
testConstructor (array $elements) | |
elementInstancesProvider | |
testIsEmpty (array $elements) | |
elementInstancesProvider | |
testOffsetSet (array $elements) | |
elementInstancesProvider | |
testSerialization (GenericArrayObject $list) | |
instanceProvider | |
testUnset (GenericArrayObject $list) | |
instanceProvider | |
Protected Member Functions | |
checkTypeChecks ($function) | |
getNew (array $elements=array()) |
Definition at line 30 of file GenericArrayObjectTest.php.
GenericArrayObjectTest::checkTypeChecks | ( | $ | function | ) | [protected] |
callback | $function |
Definition at line 167 of file GenericArrayObjectTest.php.
References array(), as, and getNew().
Referenced by testAppend(), and testOffsetSet().
GenericArrayObjectTest::elementInstancesProvider | ( | ) | [abstract] |
Returns objects that can serve as elements in the concrete GenericArrayObject deriving class being tested.
Referenced by instanceProvider().
GenericArrayObjectTest::getInstanceClass | ( | ) | [abstract] |
Returns the name of the concrete class being tested.
Referenced by getNew().
GenericArrayObjectTest::getNew | ( | array $ | elements = array() | ) | [protected] |
array | $elements |
Definition at line 74 of file GenericArrayObjectTest.php.
References getInstanceClass().
Referenced by checkTypeChecks(), instanceProvider(), testAppend(), testConstructor(), testIsEmpty(), and testOffsetSet().
Provides instances of the concrete class being tested.
Definition at line 57 of file GenericArrayObjectTest.php.
References array(), MediaWikiTestCase\arrayWrap(), as, elementInstancesProvider(), and getNew().
GenericArrayObjectTest::testAppend | ( | array $ | elements | ) |
elementInstancesProvider
array | $elements |
Definition at line 138 of file GenericArrayObjectTest.php.
References GenericArrayObject\append(), as, checkTypeChecks(), and getNew().
GenericArrayObjectTest::testConstructor | ( | array $ | elements | ) |
elementInstancesProvider
array | $elements |
Definition at line 87 of file GenericArrayObjectTest.php.
References getNew().
GenericArrayObjectTest::testIsEmpty | ( | array $ | elements | ) |
elementInstancesProvider
array | $elements |
Definition at line 100 of file GenericArrayObjectTest.php.
GenericArrayObjectTest::testOffsetSet | ( | array $ | elements | ) |
elementInstancesProvider
array | $elements |
Definition at line 198 of file GenericArrayObjectTest.php.
References array(), as, checkTypeChecks(), getNew(), and GenericArrayObject\offsetSet().
instanceProvider
GenericArrayObject | $list |
Definition at line 251 of file GenericArrayObjectTest.php.
References MediaWikiTestCase\assertArrayEquals().
instanceProvider
GenericArrayObject | $list |
Definition at line 113 of file GenericArrayObjectTest.php.
References $count, and GenericArrayObject\isEmpty().