summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-11-06 14:44:00 +0100
committerAndrey Andreev <narf@bofh.bg>2012-11-06 14:44:00 +0100
commitac68a3cadae94324d7de00bcb183ba19025e9ca2 (patch)
tree421e7c1926f87e020f71098c55bca265ec86cfaf
parentba77f8ae39bdbf456159cb48f75aea7127f9cbcd (diff)
Fix directory_map() tests
-rw-r--r--tests/codeigniter/helpers/directory_helper_test.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/codeigniter/helpers/directory_helper_test.php b/tests/codeigniter/helpers/directory_helper_test.php
index c39ccd8d0..b7d52661f 100644
--- a/tests/codeigniter/helpers/directory_helper_test.php
+++ b/tests/codeigniter/helpers/directory_helper_test.php
@@ -28,7 +28,7 @@ class Directory_helper_test extends CI_TestCase {
// test default recursive behavior
$expected = array(
- 'libraries' => array(
+ 'libraries/' => array(
'benchmark.html',
'database' => array('active_record.html', 'binds.html'),
'email.html',
@@ -39,12 +39,12 @@ class Directory_helper_test extends CI_TestCase {
$this->assertEquals($expected, directory_map(vfsStream::url('testDir')));
// test detection of hidden files
- $expected['libraries'][] = '.hiddenfile.txt';
+ $expected['libraries/'][] = '.hiddenfile.txt';
$this->assertEquals($expected, directory_map(vfsStream::url('testDir'), FALSE, TRUE));
// test recursion depth behavior
- $this->assertEquals(array('libraries'), directory_map(vfsStream::url('testDir'), 1));
+ $this->assertEquals(array('libraries/'), directory_map(vfsStream::url('testDir'), 1));
}
}