From a42f155012af6acd6fed837c9d865b0d215d2d92 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Fri, 19 Jul 2013 13:02:03 +0300 Subject: [ci skip] Skip directory_map() test when opendir() fails to open a VFS dir --- tests/codeigniter/helpers/directory_helper_test.php | 7 +++++++ 1 file changed, 7 insertions(+) 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( -- cgit v1.2.3-24-g4f1b