Skip to content

Commit add6625

Browse files
committed
update directory separator in tests
1 parent 7d5465b commit add6625

File tree

6 files changed

+22
-22
lines changed

6 files changed

+22
-22
lines changed

tests/002_basic.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ Basic test on bsdiff functions
44
bsdiff
55
--FILE--
66
<?php
7-
$old_file = __DIR__ . '/002_old.out';
8-
$new_file = __DIR__ . '/002_new.out';
9-
$diff_file = __DIR__ . '/002_diff.out';
10-
$patched_file = __DIR__ . '/002_patched.out';
7+
$old_file = __DIR__ . DIRECTORY_SEPARATOR . '002_old.out';
8+
$new_file = __DIR__ . DIRECTORY_SEPARATOR . '002_new.out';
9+
$diff_file = __DIR__ . DIRECTORY_SEPARATOR . '002_diff.out';
10+
$patched_file = __DIR__ . DIRECTORY_SEPARATOR . '002_patched.out';
1111

1212
file_put_contents($old_file, str_repeat("Hello World", 1997));
1313
file_put_contents($new_file, str_repeat("Hello PHP", 1999));

tests/003_bsdiff_exceptions.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Test exceptions thrown from function bsdiff_diff()
44
bsdiff
55
--FILE--
66
<?php
7-
$old_file = __DIR__ . '/003_old.out';
8-
$new_file = __DIR__ . '/003_new.out';
9-
$diff_file = __DIR__ . '/003_diff.out';
7+
$old_file = __DIR__ . DIRECTORY_SEPARATOR . '003_old.out';
8+
$new_file = __DIR__ . DIRECTORY_SEPARATOR . '003_new.out';
9+
$diff_file = __DIR__ . DIRECTORY_SEPARATOR . '003_diff.out';
1010

1111
foreach ([$old_file, $new_file, $diff_file] as $file) {
1212
if (file_exists($file)) unlink($file);

tests/004_bspatch_exceptions.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ Test exceptions thrown from function bsdiff_patch()
44
bsdiff
55
--FILE--
66
<?php
7-
$old_file = __DIR__ . '/004_old.out';
8-
$new_file = __DIR__ . '/004_new.out';
9-
$diff_file = __DIR__ . '/004_diff.out';
10-
$patched_file = __DIR__ . '/004_patched.out';
7+
$old_file = __DIR__ . DIRECTORY_SEPARATOR . '004_old.out';
8+
$new_file = __DIR__ . DIRECTORY_SEPARATOR . '004_new.out';
9+
$diff_file = __DIR__ . DIRECTORY_SEPARATOR . '004_diff.out';
10+
$patched_file = __DIR__ . DIRECTORY_SEPARATOR . '004_patched.out';
1111

1212
foreach ([$old_file, $new_file, $diff_file, $patched_file] as $file) {
1313
if (file_exists($file)) unlink($file);

tests/005_memory_usage.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ Test memory usage
44
bsdiff
55
--FILE--
66
<?php
7-
$old_file = __DIR__ . '/005_old.out';
8-
$new_file = __DIR__ . '/005_new.out';
9-
$diff_file = __DIR__ . '/005_diff.out';
10-
$patched_file = __DIR__ . '/005_patched.out';
7+
$old_file = __DIR__ . DIRECTORY_SEPARATOR . '005_old.out';
8+
$new_file = __DIR__ . DIRECTORY_SEPARATOR . '005_new.out';
9+
$diff_file = __DIR__ . DIRECTORY_SEPARATOR . '005_diff.out';
10+
$patched_file = __DIR__ . DIRECTORY_SEPARATOR . '005_patched.out';
1111

1212
file_put_contents($old_file, str_repeat("Hello World", 1997));
1313
file_put_contents($new_file, str_repeat("Hello PHP", 1999));

tests/006_bsdiff_memory_leaks.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Test memory leaks in function bsdiff_diff()
44
bsdiff
55
--FILE--
66
<?php
7-
$old_file = __DIR__ . '/006_old.out';
8-
$new_file = __DIR__ . '/006_new.out';
9-
$diff_file = __DIR__ . '/006_diff.out';
7+
$old_file = __DIR__ . DIRECTORY_SEPARATOR . '006_old.out';
8+
$new_file = __DIR__ . DIRECTORY_SEPARATOR . '006_new.out';
9+
$diff_file = __DIR__ . DIRECTORY_SEPARATOR . '006_diff.out';
1010

1111
foreach ([$old_file, $new_file, $diff_file] as $file) {
1212
if (file_exists($file)) unlink($file);

tests/007_bspatch_memory_leaks.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ Test memory leaks in function bsdiff_patch()
44
bsdiff
55
--FILE--
66
<?php
7-
$old_file = __DIR__ . '/007_old.out';
8-
$new_file = __DIR__ . '/007_new.out';
9-
$diff_file = __DIR__ . '/007_diff.out';
10-
$patched_file = __DIR__ . '/007_patched.out';
7+
$old_file = __DIR__ . DIRECTORY_SEPARATOR . '007_old.out';
8+
$new_file = __DIR__ . DIRECTORY_SEPARATOR . '007_new.out';
9+
$diff_file = __DIR__ . DIRECTORY_SEPARATOR . '007_diff.out';
10+
$patched_file = __DIR__ . DIRECTORY_SEPARATOR . '007_patched.out';
1111

1212
foreach ([$old_file, $new_file, $diff_file, $patched_file] as $file) {
1313
if (file_exists($file)) unlink($file);

0 commit comments

Comments
 (0)