Пример #1
0
 /**
  * Tests the ArrayHelper::pivot method.
  *
  * @param   array   $source    The source array.
  * @param   string  $key       Where the elements of the source array are objects or arrays, the key to pivot on.
  * @param   array   $expected  The expected result.
  *
  * @return  void
  *
  * @dataProvider  seedTestPivot
  * @covers        Windwalker\Utilities\ArrayHelper::pivot
  * @since         1.0
  */
 public function testPivot($source, $key, $expected)
 {
     $this->assertThat(ArrayHelper::pivot($source, $key), $this->equalTo($expected));
 }