Permalink
Browse files

Fix directory_map() tests

  • Loading branch information...
1 parent ba77f8a commit ac68a3cadae94324d7de00bcb183ba19025e9ca2 @narfbg narfbg committed Nov 6, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/codeigniter/helpers/directory_helper_test.php
@@ -28,7 +28,7 @@ public function test_directory_map()
// 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 @@ public function test_directory_map()
$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));
}
}

0 comments on commit ac68a3c

Please sign in to comment.