summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2013-07-19 12:02:03 +0200
committerAndrey Andreev <narf@devilix.net>2013-07-19 12:02:03 +0200
commita42f155012af6acd6fed837c9d865b0d215d2d92 (patch)
treed9751c65be68697e9e80f38885a12398c1d2b757 /tests
parent09b75b181303bb88af403b93245f8b3bd62d0eea (diff)
[ci skip] Skip directory_map() test when opendir() fails to open a VFS dir
Diffstat (limited to 'tests')
-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(