diff --git a/cake/libs/set.php b/cake/libs/set.php index f63138451..de5b6fccf 100644 --- a/cake/libs/set.php +++ b/cake/libs/set.php @@ -404,7 +404,7 @@ class Set extends Object { $contexts = array($data); } - $tokens = array_slice(preg_split('/(?assertEqual($r, $expected); - + $this->assertEqual($r, $expected); + + $expected = array(4); + $r = Set::extract('/User[name=/N/]/id', $tricky); + $this->assertEqual($r, $expected); + + $expected = array(1, 3, 4); + $r = Set::extract('/User[name=/N/i]/id', $tricky); + $this->assertEqual($r, $expected); + $common = array( array( 'Article' => array(