PHP Class lithium\tests\cases\util\CollectionTest

Inheritance: extends lithium\test\Unit
Show file Open project: unionofrad/lithium

Public Methods

Method 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 method

public setUp ( )

tearDown() public method

public tearDown ( )

testArrayAccessOffsetMethods() public method

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

testArrayAccessTraversalMethods() public method

Tests the ArrayAccess interface implementation for traversing values.

testArrayLike() public method

public testArrayLike ( )

testCollectionEachFilter() public method

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

testCollectionFindFilter() public method

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

testCollectionFirstFilter() public method

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

testCollectionFormatConversion() public method

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

testCollectionHandlers() public method

testCollectionMapFilter() public method

testCollectionReduceFilter() public method

testCollectionSort() public method

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

testCount() public method

public testCount ( )

testInternalKeys() public method

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

testObjectCasting() public method

public testObjectCasting ( )

testObjectMethodDispatch() public method

testRespondsToMagic() public method

public testRespondsToMagic ( )

testRespondsToParent() public method

testUnsetInForeach() public method

public testUnsetInForeach ( )

testValid() public method

public testValid ( )

testValueAppend() public method

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