JArrayHelperTest::testPivot
Tests the JArrayHelper::pivot method.
Signature
public function testPivot(array
$source,
string
$key,
array
$expected )
Parameters
-
$source
- The source array.
-
$key
- Where the elements of the source array are objects or arrays, the key to pivot on.
-
$expected
- The expected result.
Returns
- void