PHP Class lithium\tests\cases\util\CollectionTest

Inheritance: extends lithium\test\Unit
Afficher le fichier Open project: unionofrad/lithium

Méthodes publiques

Méthode Description
setUp ( )
tearDown ( )
testArrayAccessOffsetMethods ( ) Tests the ArrayAccess interface implementation for manipulating values by direct offsets.
testArrayAccessTraversalMethods ( ) Tests the ArrayAccess interface implementation for traversing values.
testArrayLike ( )
testCollectionEachFilter ( ) Tests that the each() filter applies the callback to each item in the current collection, returning an instance of itself.
testCollectionFindFilter ( ) Tests that the find() method properly filters items out of the resulting collection.
testCollectionFirstFilter ( ) Tests that the first() method properly returns the first non-empty value.
testCollectionFormatConversion ( ) Tests that various types of handlers can be registered with Collection::formats(), and that collection instances are converted correctly.
testCollectionHandlers ( )
testCollectionMapFilter ( )
testCollectionReduceFilter ( )
testCollectionSort ( ) Tests that the Collection::sort method works appropriately.
testCount ( )
testInternalKeys ( ) Tests getting the index of the internal array.
testObjectCasting ( )
testObjectMethodDispatch ( )
testRespondsToMagic ( )
testRespondsToParent ( )
testUnsetInForeach ( )
testValid ( )
testValueAppend ( ) Tests objects and scalar values being appended to the collection.

Method Details

setUp() public méthode

public setUp ( )

tearDown() public méthode

public tearDown ( )

testArrayAccessOffsetMethods() public méthode

Tests the ArrayAccess interface implementation for manipulating values by direct offsets.

testArrayAccessTraversalMethods() public méthode

Tests the ArrayAccess interface implementation for traversing values.

testArrayLike() public méthode

public testArrayLike ( )

testCollectionEachFilter() public méthode

Tests that the each() filter applies the callback to each item in the current collection, returning an instance of itself.

testCollectionFindFilter() public méthode

Tests that the find() method properly filters items out of the resulting collection.

testCollectionFirstFilter() public méthode

Tests that the first() method properly returns the first non-empty value.

testCollectionFormatConversion() public méthode

Tests that various types of handlers can be registered with Collection::formats(), and that collection instances are converted correctly.

testCollectionHandlers() public méthode

testCollectionMapFilter() public méthode

testCollectionReduceFilter() public méthode

testCollectionSort() public méthode

Tests that the Collection::sort method works appropriately.
public testCollectionSort ( )

testCount() public méthode

public testCount ( )

testInternalKeys() public méthode

Tests getting the index of the internal array.
public testInternalKeys ( )

testObjectCasting() public méthode

public testObjectCasting ( )

testObjectMethodDispatch() public méthode

testRespondsToMagic() public méthode

public testRespondsToMagic ( )

testRespondsToParent() public méthode

testUnsetInForeach() public méthode

public testUnsetInForeach ( )

testValid() public méthode

public testValid ( )

testValueAppend() public méthode

Tests objects and scalar values being appended to the collection.
public testValueAppend ( )