summaryrefslogtreecommitdiff
path: root/ext/zip/tests/oo_addpattern.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zip/tests/oo_addpattern.phpt')
-rw-r--r--ext/zip/tests/oo_addpattern.phpt6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/zip/tests/oo_addpattern.phpt b/ext/zip/tests/oo_addpattern.phpt
index fe1a57368d..19453bee49 100644
--- a/ext/zip/tests/oo_addpattern.phpt
+++ b/ext/zip/tests/oo_addpattern.phpt
@@ -25,7 +25,7 @@ if (!$zip->open($file)) {
exit('failed');
}
$dir = realpath($dirname);
-$options = array('add_path' => 'baz/', 'remove_path' => $dir);
+$options = array('add_path' => 'baz', 'remove_path' => $dir);
if (!$zip->addPattern('/\.txt$/', $dir, $options)) {
echo "failed\n";
}
@@ -35,8 +35,8 @@ if ($zip->status == ZIPARCHIVE::ER_OK) {
"foobar/",
"foobar/baz",
"entry1.txt",
- "baz/foo.txt",
- "baz/bar.txt"
+ "baz" . DIRECTORY_SEPARATOR . "foo.txt",
+ "baz" . DIRECTORY_SEPARATOR . "bar.txt"
])) {
echo "failed\n";
} else {