From dbc727373c6b9a086a4b3d28608acb6fadf7a8fd Mon Sep 17 00:00:00 2001 From: Matt Ficken Date: Tue, 29 May 2012 16:31:47 +0200 Subject: Fix bug #62177 Test Bug - finfo_file_regex.phpt --- ext/fileinfo/tests/finfo_file_regex-win32.phpt | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 ext/fileinfo/tests/finfo_file_regex-win32.phpt (limited to 'ext') diff --git a/ext/fileinfo/tests/finfo_file_regex-win32.phpt b/ext/fileinfo/tests/finfo_file_regex-win32.phpt new file mode 100644 index 0000000000..1eda48c4d0 --- /dev/null +++ b/ext/fileinfo/tests/finfo_file_regex-win32.phpt @@ -0,0 +1,36 @@ +--TEST-- +Test finfo_file() function : regex rules +--SKIPIF-- + +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing finfo_file() : regex rules *** +string(10) "text/plain" +string(22) "awk script, ASCII text" +===DONE=== -- cgit v1.2.1 From b4b0aaae9331edcd8de7ca9062c0c8478265b008 Mon Sep 17 00:00:00 2001 From: Matt Ficken Date: Tue, 29 May 2012 16:37:19 +0200 Subject: Bug #62177 deactivate the linux test version on win --- ext/fileinfo/tests/finfo_file_regex.phpt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/fileinfo/tests/finfo_file_regex.phpt b/ext/fileinfo/tests/finfo_file_regex.phpt index c1cc36f2b3..ee4c8b0b7a 100644 --- a/ext/fileinfo/tests/finfo_file_regex.phpt +++ b/ext/fileinfo/tests/finfo_file_regex.phpt @@ -1,7 +1,11 @@ --TEST-- Test finfo_file() function : regex rules --SKIPIF-- - + --FILE-- Date: Tue, 29 May 2012 16:38:57 +0200 Subject: Fix bug #62150 Test Bug - ext/fileinfo/tests/finfo_open_error.phpt --- ext/fileinfo/tests/finfo_open_error-win32.phpt | 46 ++++++++++++++++++++++++++ ext/fileinfo/tests/finfo_open_error.phpt | 5 ++- 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 ext/fileinfo/tests/finfo_open_error-win32.phpt (limited to 'ext') diff --git a/ext/fileinfo/tests/finfo_open_error-win32.phpt b/ext/fileinfo/tests/finfo_open_error-win32.phpt new file mode 100644 index 0000000000..bd50327b2d --- /dev/null +++ b/ext/fileinfo/tests/finfo_open_error-win32.phpt @@ -0,0 +1,46 @@ +--TEST-- +Test finfo_open() function : error functionality +--SKIPIF-- + +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing finfo_open() : error functionality *** +bool(false) + +Warning: finfo_open() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Warning: finfo_open() expects at most 2 parameters, 3 given in %s on line %d +bool(false) +resource(%d) of type (file_info) + +Warning: finfo_open() expects parameter 1 to be long, %unicode_string_optional% given in %s on line %d +bool(false) + +Warning: finfo::finfo() expects parameter 1 to be long, %unicode_string_optional% given in %s on line %d +NULL +===DONE=== diff --git a/ext/fileinfo/tests/finfo_open_error.phpt b/ext/fileinfo/tests/finfo_open_error.phpt index aae229f777..7bf60bfe63 100644 --- a/ext/fileinfo/tests/finfo_open_error.phpt +++ b/ext/fileinfo/tests/finfo_open_error.phpt @@ -1,7 +1,10 @@ --TEST-- Test finfo_open() function : error functionality --SKIPIF-- - + --FILE--