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

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=[])
 

Detailed Description

Definition at line 29 of file GenericArrayObjectTest.php.

Member Function Documentation

GenericArrayObjectTest::checkTypeChecks (   $function)
protected
Since
1.20
Parameters
callable$functionGenericArrayObject::getObjectType

Definition at line 177 of file GenericArrayObjectTest.php.

References 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.

Since
1.20
Returns
array

Referenced by instanceProvider().

GenericArrayObjectTest::getInstanceClass ( )
abstract

Returns the name of the concrete class being tested.

Since
1.20
Returns
string

Referenced by getNew().

GenericArrayObjectTest::getNew ( array  $elements = [])
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().

GenericArrayObjectTest::instanceProvider ( )

Provides instances of the concrete class being tested.

Since
1.20
Returns
array

Definition at line 57 of file GenericArrayObjectTest.php.

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

GenericArrayObjectTest::testAppend ( array  $elements)

elementInstancesProvider

Since
1.20
Parameters
array$elementsGenericArrayObject::append

Definition at line 146 of file GenericArrayObjectTest.php.

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

GenericArrayObjectTest::testConstructor ( array  $elements)

elementInstancesProvider

Since
1.20
Parameters
array$elementsGenericArrayObject::__construct

Definition at line 89 of file GenericArrayObjectTest.php.

References getNew().

GenericArrayObjectTest::testIsEmpty ( array  $elements)

elementInstancesProvider

Since
1.20
Parameters
array$elementsGenericArrayObject::isEmpty

Definition at line 104 of file GenericArrayObjectTest.php.

References getNew().

GenericArrayObjectTest::testOffsetSet ( array  $elements)

elementInstancesProvider

Since
1.20
Parameters
array$elementsGenericArrayObject::offsetSet

Definition at line 210 of file GenericArrayObjectTest.php.

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

GenericArrayObjectTest::testSerialization ( GenericArrayObject  $list)
GenericArrayObjectTest::testUnset ( GenericArrayObject  $list)

instanceProvider

Since
1.20
Parameters
GenericArrayObject$listGenericArrayObject::offsetUnset

Definition at line 119 of file GenericArrayObjectTest.php.

References $count, and GenericArrayObject\isEmpty().


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