Exemplo n.º 1
0
 /**
  * Tests Arr::path()
  *
  * @test
  * @dataProvider providerPath
  * @param string  $path       The path to follow
  * @param mixed   $default    The value to return if dnx
  * @param boolean $expected   The expected value
  * @param string  $delimiter  The path delimiter
  */
 public function testPath($expected, $array, $path, $default = null, $delimiter = null)
 {
     $this->assertSame($expected, Arr::path($array, $path, $default, $delimiter));
 }