Skip to content

Commit

Permalink
Added Arr::path tests for 12f5dff / #3194
Browse files Browse the repository at this point in the history
  • Loading branch information
Woody Gilk committed Sep 25, 2010
1 parent 12f5dff commit 4f62d91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/kohana/ArrTest.php
Expand Up @@ -265,7 +265,9 @@ public function provider_path()
'users' => array(
1 => array('name' => 'matt'),
2 => array('name' => 'john', 'interests' => array('hocky' => array('length' => 2), 'football' => array())),
3 => 'frank', // Issue #3194
),
'object' => new ArrayObject(array('iterator' => TRUE)), // Iterable object should work exactly the same
);

return array(
Expand Down Expand Up @@ -294,6 +296,7 @@ public function provider_path()
array(array('matt', 'john'), $array['users'], '*.name'),
// Path as array, issue #3260
array($array['users'][2]['name'], $array, array('users', 2, 'name')),
array($array['object']['iterator'], $array, 'object.iterator'),
);
}

Expand Down

0 comments on commit 4f62d91

Please sign in to comment.