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

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 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 elementInstancesProvider(), and getNew().

◆ testAppend()

GenericArrayObjectTest::testAppend ( array $elements)

elementInstancesProvider

Since
1.20
Parameters
array$elements

GenericArrayObject::append

Definition at line 148 of file GenericArrayObjectTest.php.

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

◆ testConstructor()

GenericArrayObjectTest::testConstructor ( array $elements)

elementInstancesProvider

Since
1.20
Parameters
array$elements

GenericArrayObject::__construct

Definition at line 91 of file GenericArrayObjectTest.php.

References getNew().

◆ testIsEmpty()

GenericArrayObjectTest::testIsEmpty ( array $elements)

elementInstancesProvider

Since
1.20
Parameters
array$elements

GenericArrayObject::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 checkTypeChecks(), getNew(), and GenericArrayObject\offsetSet().

◆ testSerialization()

GenericArrayObjectTest::testSerialization ( GenericArrayObject $list)

◆ testUnset()

GenericArrayObjectTest::testUnset ( GenericArrayObject $list)

instanceProvider

Since
1.20
Parameters
GenericArrayObject$list

GenericArrayObject::offsetUnset

Definition at line 121 of file GenericArrayObjectTest.php.

References GenericArrayObject\isEmpty().


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