MediaWiki
1.30.0
|
Public Member Functions | |
elementInstancesProvider () | |
Returns objects that can serve as elements in the concrete GenericArrayObject deriving class being tested. More... | |
getInstanceClass () | |
Returns the name of the concrete class being tested. More... | |
instanceProvider () | |
Provides instances of the concrete class being tested. More... | |
testAppend (array $elements) | |
elementInstancesProvider More... | |
testConstructor (array $elements) | |
elementInstancesProvider More... | |
testIsEmpty (array $elements) | |
elementInstancesProvider More... | |
testOffsetSet (array $elements) | |
elementInstancesProvider More... | |
testSerialization (GenericArrayObject $list) | |
instanceProvider More... | |
testUnset (GenericArrayObject $list) | |
instanceProvider More... | |
Protected Member Functions | |
checkTypeChecks ( $function) | |
getNew (array $elements=[]) | |
Definition at line 29 of file GenericArrayObjectTest.php.
|
protected |
callable | $function | GenericArrayObject::getObjectType |
Definition at line 177 of file GenericArrayObjectTest.php.
Referenced by testAppend(), and testOffsetSet().
|
abstract |
Returns objects that can serve as elements in the concrete GenericArrayObject deriving class being tested.
Referenced by instanceProvider().
|
abstract |
Returns the name of the concrete class being tested.
Referenced by getNew().
|
protected |
array | $elements |
Definition at line 74 of file GenericArrayObjectTest.php.
References getInstanceClass().
Referenced by checkTypeChecks(), instanceProvider(), testAppend(), testConstructor(), testIsEmpty(), and testOffsetSet().
GenericArrayObjectTest::instanceProvider | ( | ) |
Provides instances of the concrete class being tested.
Definition at line 57 of file GenericArrayObjectTest.php.
References as, elementInstancesProvider(), and getNew().
GenericArrayObjectTest::testAppend | ( | array | $elements | ) |
elementInstancesProvider
array | $elements | GenericArrayObject::append |
Definition at line 146 of file GenericArrayObjectTest.php.
References GenericArrayObject\append(), as, checkTypeChecks(), captcha-old\count, and getNew().
GenericArrayObjectTest::testConstructor | ( | array | $elements | ) |
elementInstancesProvider
array | $elements | GenericArrayObject::__construct |
Definition at line 89 of file GenericArrayObjectTest.php.
References captcha-old\count, and getNew().
GenericArrayObjectTest::testIsEmpty | ( | array | $elements | ) |
elementInstancesProvider
array | $elements | GenericArrayObject::isEmpty |
Definition at line 104 of file GenericArrayObjectTest.php.
References getNew().
GenericArrayObjectTest::testOffsetSet | ( | array | $elements | ) |
elementInstancesProvider
array | $elements | GenericArrayObject::offsetSet |
Definition at line 210 of file GenericArrayObjectTest.php.
References as, checkTypeChecks(), captcha-old\count, getNew(), and GenericArrayObject\offsetSet().
GenericArrayObjectTest::testSerialization | ( | GenericArrayObject | $list | ) |
instanceProvider
GenericArrayObject | $list | GenericArrayObject::getSerializationData GenericArrayObject::serialize GenericArrayObject::unserialize |
Definition at line 267 of file GenericArrayObjectTest.php.
References captcha-old\count, serialize(), and unserialize().
GenericArrayObjectTest::testUnset | ( | GenericArrayObject | $list | ) |
instanceProvider
GenericArrayObject | $list | GenericArrayObject::offsetUnset |
Definition at line 119 of file GenericArrayObjectTest.php.
References GenericArrayObject\isEmpty().