Example #1
0
 /**
  * Method to test pivotByKey().
  *
  * @param array $data
  * @param array $expected
  *
  * @return void
  *
  * @dataProvider seedTestPivotByKey
  * @covers       \Windwalker\Helper\ArrayHelper::pivotByKey
  */
 public function testPivotByKey($data, $expected)
 {
     $this->assertEquals($expected, ArrayHelper::pivotByKey($data));
 }