summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/codeigniter/helpers/directory_helper_test.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/codeigniter/helpers/directory_helper_test.php b/tests/codeigniter/helpers/directory_helper_test.php
index 9c4e4c050..d86047349 100644
--- a/tests/codeigniter/helpers/directory_helper_test.php
+++ b/tests/codeigniter/helpers/directory_helper_test.php
@@ -28,6 +28,13 @@ class Directory_helper_test extends CI_TestCase {
vfsStream::create($structure, $this->_test_dir);
+ // opendir() seems to fail on Windows + vfsStream when there are trailing slashes in directory names
+ if ( ! @opendir(vfsStream::url('testDir')))
+ {
+ $this->markTestSkipped();
+ return;
+ }
+
// test default recursive behavior
$expected = array(
'libraries'.$ds => array(