Skip to content

Commit

Permalink
meta characters don't match on regex string
Browse files Browse the repository at this point in the history
Signed-off-by: mark_story <mark@mark-story.com>
  • Loading branch information
SKAhack authored and markstory committed Oct 25, 2010
1 parent 23f1c8e commit 9f2d33a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cake/tests/cases/libs/set.test.php
Expand Up @@ -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,
Expand Down

0 comments on commit 9f2d33a

Please sign in to comment.