PHP Class lithium\tests\cases\data\CollectionTest

Inheritance: extends lithium\test\Unit
Datei anzeigen Open project: unionofrad/lithium

Protected Properties

Property Type Description
$_database string Mock database class.
$_model string Used model.

Public Methods

Method Description
testAccessorMethods ( ) Tests Collection accessors (getters/setters).
testArrayFiltering ( ) Tests that arrays can be used to filter objects in find() and first() methods.
testAssignTo ( ) Tests Collection::assignTo.
testClosed ( ) Tests Collection::closed && Collection::close.
testData ( ) Tests Collection::data.
testEach ( ) Tests Collection::each.
testGetStats ( ) Tests Collection::stats().
testHandlers ( )
testMap ( ) Tests Collection::map.
testNextRewindCurrent ( ) Tests Collection::rewind and Collection::current.
testOffsetExists ( ) Tests Collection::offsetExists().
testReduce ( ) Tests Collection::reduce.
testSort ( ) Tests the sort method in lithium\data\Collection.

Method Details

testAccessorMethods() public method

Tests Collection accessors (getters/setters).
public testAccessorMethods ( )

testArrayFiltering() public method

Tests that arrays can be used to filter objects in find() and first() methods.
public testArrayFiltering ( )

testAssignTo() public method

Tests Collection::assignTo.
public testAssignTo ( )

testClosed() public method

Tests Collection::closed && Collection::close.
public testClosed ( )

testData() public method

Tests Collection::data.
public testData ( )

testEach() public method

Tests Collection::each.
public testEach ( )

testGetStats() public method

Tests Collection::stats().
public testGetStats ( )

testHandlers() public method

public testHandlers ( )

testMap() public method

Tests Collection::map.
public testMap ( )

testNextRewindCurrent() public method

Tests Collection::rewind and Collection::current.

testOffsetExists() public method

Tests Collection::offsetExists().
public testOffsetExists ( )

testReduce() public method

Tests Collection::reduce.
public testReduce ( )

testSort() public method

Tests the sort method in lithium\data\Collection.
public testSort ( )

Property Details

$_database protected_oe property

Mock database class.
protected string $_database
return string

$_model protected_oe property

Used model.
protected string $_model
return string