mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
meta characters don't match on regex string
Signed-off-by: mark_story <mark@mark-story.com>
This commit is contained in:
parent
23f1c8e1c7
commit
9f2d33aa88
1 changed files with 7 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue