Permalink
Browse files

meta characters don't match on regex string

Signed-off-by: mark_story <mark@mark-story.com>
  • Loading branch information...
1 parent 23f1c8e commit 9f2d33aa88e33d4fecd14ecfdbcbe49fb8c86cbb SKAhack committed with markstory Aug 30, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 cake/tests/cases/libs/set.test.php
@@ -888,6 +888,13 @@ function testExtract() {
$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,

0 comments on commit 9f2d33a

Please sign in to comment.