Skip to content

Commit 8db8ca9

Browse files
committed
Fix test for windows
1 parent 784e4bc commit 8db8ca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/bug_gh12661.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $zip = new ZipArchive();
1414
$zip->open($file, ZipArchive::CREATE | ZipArchive::OVERWRITE);
1515
$zip->addGlob(__FILE__, 0, ['remove_path' => 'bug_']); // unchanged (bug is not a prefix)
1616
$zip->addGlob(__FILE__, 0, ['remove_path' => dirname(__DIR__)]);
17-
verify_entries($zip, [__FILE__, 'tests/' . basename(__FILE__)]);
17+
verify_entries($zip, [__FILE__, basename(__DIR__) . DIRECTORY_SEPARATOR . basename(__FILE__)]);
1818
$zip->close();
1919

2020
?>

0 commit comments

Comments
 (0)