MediaWiki  REL1_31
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

◆ checkTypeChecks()

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

Definition at line 177 of file GenericArrayObjectTest.php.

References as, and getNew().

Referenced by testAppend(), and testOffsetSet().

◆ elementInstancesProvider()

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

◆ getInstanceClass()

GenericArrayObjectTest::getInstanceClass ( )
abstract

Returns the name of the concrete class being tested.

Since
1.20
Returns
string

Referenced by getNew().

◆ getNew()

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

Definition at line 76 of file GenericArrayObjectTest.php.

References getInstanceClass().

Referenced by checkTypeChecks(), instanceProvider(), testAppend(), testConstructor(), testIsEmpty(), and testOffsetSet().

◆ instanceProvider()

GenericArrayObjectTest::instanceProvider ( )

Provides instances of the concrete class being tested.

Since
1.20
Returns
array

Definition at line 59 of file GenericArrayObjectTest.php.

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

◆ testAppend()

GenericArrayObjectTest::testAppend ( array  $elements)

elementInstancesProvider

Since
1.20
Parameters
array$elementsGenericArrayObject::append

Definition at line 148 of file GenericArrayObjectTest.php.

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

◆ testConstructor()

GenericArrayObjectTest::testConstructor ( array  $elements)

elementInstancesProvider

Since
1.20
Parameters
array$elementsGenericArrayObject::__construct

Definition at line 91 of file GenericArrayObjectTest.php.

References getNew().

◆ testIsEmpty()

GenericArrayObjectTest::testIsEmpty ( array  $elements)

elementInstancesProvider

Since
1.20
Parameters
array$elementsGenericArrayObject::isEmpty

Definition at line 106 of file GenericArrayObjectTest.php.

References getNew().

◆ testOffsetSet()

GenericArrayObjectTest::testOffsetSet ( array  $elements)

elementInstancesProvider

Since
1.20
Parameters
array$elementsGenericArrayObject::getObjectType GenericArrayObject::offsetSet

Definition at line 210 of file GenericArrayObjectTest.php.

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

◆ testSerialization()

GenericArrayObjectTest::testSerialization ( GenericArrayObject  $list)

◆ testUnset()

GenericArrayObjectTest::testUnset ( GenericArrayObject  $list)

instanceProvider

Since
1.20
Parameters
GenericArrayObject$listGenericArrayObject::offsetUnset

Definition at line 121 of file GenericArrayObjectTest.php.

References GenericArrayObject\isEmpty().


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