meta characters don't match on regex string

Signed-off-by: mark_story <mark@mark-story.com>
This commit is contained in:
SKAhack 2010-08-30 16:42:20 +09:00 committed by mark_story
parent 23f1c8e1c7
commit 9f2d33aa88

View file

@ -888,6 +888,13 @@ class SetTest extends CakeTestCase {
$r = Set::extract('/file/.[type=application/x zip compressed]', $f);
$this->assertEqual($r, $expected);
$expected = array(
array('name' => 'zipfile.zip','type' => 'application/zip','tmp_name' => '/tmp/php178.tmp','error' => 0,'size' => '564647'),
array('name' => 'zipfile2.zip','type' => 'application/x zip compressed','tmp_name' => '/tmp/php179.tmp','error' => 0,'size' => '354784')
);
$r = Set::extract('/file/.[tmp_name=/tmp\/php17/]', $f);
$this->assertEqual($r, $expected);
$hasMany = array(
'Node' => array(
'id' => 1,