MediaWiki  1.30.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

◆ checkTypeChecks()

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

◆ 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 74 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 57 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 146 of file GenericArrayObjectTest.php.

References GenericArrayObject\append(), as, checkTypeChecks(), captcha-old\count, and getNew().

◆ testConstructor()

GenericArrayObjectTest::testConstructor ( array  $elements)

elementInstancesProvider

Since
1.20
Parameters
array$elementsGenericArrayObject::__construct

Definition at line 89 of file GenericArrayObjectTest.php.

References captcha-old\count, and getNew().

◆ testIsEmpty()

GenericArrayObjectTest::testIsEmpty ( array  $elements)

elementInstancesProvider

Since
1.20
Parameters
array$elementsGenericArrayObject::isEmpty

Definition at line 104 of file GenericArrayObjectTest.php.

References getNew().

◆ testOffsetSet()

GenericArrayObjectTest::testOffsetSet ( array  $elements)

elementInstancesProvider

Since
1.20
Parameters
array$elementsGenericArrayObject::offsetSet

Definition at line 210 of file GenericArrayObjectTest.php.

References as, checkTypeChecks(), captcha-old\count, 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 119 of file GenericArrayObjectTest.php.

References GenericArrayObject\isEmpty().


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