Skip to content

Commit

Permalink
Fix directory_map() tests
Browse files Browse the repository at this point in the history
  • Loading branch information
narfbg committed Nov 6, 2012
1 parent ba77f8a commit ac68a3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/codeigniter/helpers/directory_helper_test.php
Expand Up @@ -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',
Expand All @@ -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));
}

}
Expand Down

0 comments on commit ac68a3c

Please sign in to comment.