MediaWiki  REL1_22
GenericArrayObjectTest Class Reference
Inheritance diagram for GenericArrayObjectTest:
Collaboration diagram for GenericArrayObjectTest:

List of all members.

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())

Detailed Description

Definition at line 30 of file GenericArrayObjectTest.php.


Member Function Documentation

GenericArrayObjectTest::checkTypeChecks ( function) [protected]
Since:
1.20
Parameters:
callback$function

Definition at line 167 of file GenericArrayObjectTest.php.

References array(), as, and getNew().

Referenced by testAppend(), and testOffsetSet().

Returns objects that can serve as elements in the concrete GenericArrayObject deriving class being tested.

Since:
1.20
Returns:
array

Referenced by instanceProvider().

Returns the name of the concrete class being tested.

Since:
1.20
Returns:
string

Referenced by getNew().

GenericArrayObjectTest::getNew ( array elements = array()) [protected]
Since:
1.20
Parameters:
array$elements
Returns:
GenericArrayObject

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.

Since:
1.20
Returns:
array

Definition at line 57 of file GenericArrayObjectTest.php.

References array(), MediaWikiTestCase\arrayWrap(), as, elementInstancesProvider(), and getNew().

elementInstancesProvider

Since:
1.20
Parameters:
array$elements

Definition at line 138 of file GenericArrayObjectTest.php.

References GenericArrayObject\append(), as, checkTypeChecks(), and getNew().

elementInstancesProvider

Since:
1.20
Parameters:
array$elements

Definition at line 87 of file GenericArrayObjectTest.php.

References getNew().

elementInstancesProvider

Since:
1.20
Parameters:
array$elements

Definition at line 100 of file GenericArrayObjectTest.php.

References array(), and getNew().

elementInstancesProvider

Since:
1.20
Parameters:
array$elements

Definition at line 198 of file GenericArrayObjectTest.php.

References array(), as, checkTypeChecks(), getNew(), and GenericArrayObject\offsetSet().

instanceProvider

Since:
1.21
Parameters:
GenericArrayObject$list

Definition at line 251 of file GenericArrayObjectTest.php.

References MediaWikiTestCase\assertArrayEquals().

instanceProvider

Since:
1.20
Parameters:
GenericArrayObject$list

Definition at line 113 of file GenericArrayObjectTest.php.

References $count, and GenericArrayObject\isEmpty().


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