From 3082177beebdf148b5b4165f5efbc2c26fd0c01b Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Fri, 20 Feb 2015 16:01:34 +0100 Subject: [PATCH] split test for bug #68557 for windows --- ext/spl/tests/bug68557-win32.phpt | 44 +++++++++++++++++++++++++++++++ ext/spl/tests/bug68557.phpt | 9 ++++++- 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 ext/spl/tests/bug68557-win32.phpt diff --git a/ext/spl/tests/bug68557-win32.phpt b/ext/spl/tests/bug68557-win32.phpt new file mode 100644 index 0000000000..95502a53e8 --- /dev/null +++ b/ext/spl/tests/bug68557-win32.phpt @@ -0,0 +1,44 @@ +--TEST-- +Bug #68557 (SplFileInfo::getPathname() may be broken) +--SKIPIF-- + +--FILE-- +seek(0); +var_dump($d->current()->getPathname()); + +$d->seek(1); +var_dump($d->current()->getPathname()); + +$d->seek(0); +var_dump($d->current()->getPathname()); + +$d->seek(1); +var_dump($d->current()->getPathname()); + +$d->seek(2); +var_dump($d->current()->getPathname()); +?> +--CLEAN-- + +--EXPECTF-- +string(%d) "%s\tmp\." +string(%d) "%s\tmp\.." +string(%d) "%s\tmp\." +string(%d) "%s\tmp\.." +string(%d) "%s\tmp\a" + diff --git a/ext/spl/tests/bug68557.phpt b/ext/spl/tests/bug68557.phpt index bcf66c9d24..c862bda7cf 100644 --- a/ext/spl/tests/bug68557.phpt +++ b/ext/spl/tests/bug68557.phpt @@ -1,5 +1,11 @@ --TEST-- Bug #68557 (SplFileInfo::getPathname() may be broken) +--SKIPIF-- + --FILE--