diff --git a/ext/standard/tests/file/file_get_contents_error_folder-win.phpt b/ext/standard/tests/file/file_get_contents_error_folder-win.phpt new file mode 100644 index 00000000000..ea3902fdbe0 --- /dev/null +++ b/ext/standard/tests/file/file_get_contents_error_folder-win.phpt @@ -0,0 +1,12 @@ +--TEST-- +Test file_get_contents() function : error when passing folder - on Windows +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: file_get_contents(%s): Failed to open stream: Permission denied in %s on line %d diff --git a/ext/standard/tests/file/file_get_contents_error_folder.phpt b/ext/standard/tests/file/file_get_contents_error_folder.phpt new file mode 100644 index 00000000000..32f0210d3bb --- /dev/null +++ b/ext/standard/tests/file/file_get_contents_error_folder.phpt @@ -0,0 +1,12 @@ +--TEST-- +Test file_get_contents() function : error when passing folder +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Notice: file_get_contents(): Read of %d bytes failed with errno=21 Is a directory in %s on line %d