ArrayObjectATest

Extends \PHPUnit_Framework_TestCase

Advanced Array Object Test

package

ArrayObjectATest

subpackage

Utility

Methods

Data provider for testFilter

filterProvider() : array

Response

array

Data provider for testGroup

groupProvider() : array

Response

array

Data provider for testSerialize

jsonProvider() : array

Response

array

Data provider for testMap

mapProvider() : array

Response

array

Data provider for testMerge

mergeProvider() : array

Response

array

Data provider for testReduce

reduceProvider() : array

Response

array

{@inheritdoc}

setUp() 

Data provider for testSlice

sliceProvider() : array

Response

array

Test filter

testFilter(\ArrayObjectA $Array1, callable $callback, \ArrayObjectA $Result, boolean $same) 
dataProvider

filterProvider

Arguments

$Array1

\ArrayObjectA

$callback

callable

$Result

\ArrayObjectA

$same

boolean

Test group

testGroup(\ArrayObjectA $Array1, callable $callback, \ArrayObjectA $Result) 
dataProvider

groupProvider

Arguments

$Array1

\ArrayObjectA

$callback

callable

$Result

\ArrayObjectA

Test inheritance

testInheritance() 

Test map

testMap(\ArrayObjectA $Array1, callable $callback, \ArrayObjectA $Result, boolean $same) 
dataProvider

mapProvider

Arguments

$Array1

\ArrayObjectA

$callback

callable

$Result

\ArrayObjectA

$same

boolean

Test merge

testMerge(\ArrayObjectA $Array1, \ArrayObjectA $Array2, \ArrayObjectA $Result, boolean $same) 
dataProvider

mergeProvider

Arguments

$Array1

\ArrayObjectA

$Array2

\ArrayObjectA

$Result

\ArrayObjectA

$same

boolean

Test arraySort integrity

testMultisort() 

Test reduce

testReduce(\ArrayObjectA $Array1, callable $callback, mixed $result, boolean $same) 
dataProvider

reduceProvider

Arguments

$Array1

\ArrayObjectA

$callback

callable

$result

mixed

$same

boolean

Test json serialization

testSerialize(\ArrayObjectA $Array, string $result) 
dataProvider

jsonProvider

Arguments

$Array

\ArrayObjectA

$result

string

Test slice

testSlice(array $array, integer $offset, integer $length, boolean $preserveKeys, array $result) 
dataProvider

sliceProvider

Arguments

$array

array

$offset

integer

$length

integer

$preserveKeys

boolean

$result

array

Test unique

testUnique(\ArrayObjectA $Array1, callable $callback, \ArrayObjectA $Result) 
dataProvider

uniqueProvider

Arguments

$Array1

\ArrayObjectA

$callback

callable

$Result

\ArrayObjectA

Data provider for testUnique

uniqueProvider() : array

Response

array