summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorvlakoff <vlakoff@gmail.com>2012-09-13 05:19:59 +0200
committervlakoff <vlakoff@gmail.com>2012-09-13 05:19:59 +0200
commit8280885499ca4b1cffacc9ad78a9eff07a84de25 (patch)
tree4fe5c64156f6ab19468a9f1fa9e3713737866ff7 /tests
parent88e3857ec2328e1dc4168c8343367d9d9e54d019 (diff)
directory_map() was skipping files and directories named "0"
Close #1757. Thanks @BennyC!
Diffstat (limited to 'tests')
-rw-r--r--tests/codeigniter/helpers/directory_helper_test.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/codeigniter/helpers/directory_helper_test.php b/tests/codeigniter/helpers/directory_helper_test.php
index 176ff1d78..c39ccd8d0 100644
--- a/tests/codeigniter/helpers/directory_helper_test.php
+++ b/tests/codeigniter/helpers/directory_helper_test.php
@@ -19,6 +19,7 @@ class Directory_helper_test extends CI_TestCase {
'benchmark.html' => '',
'database' => array('active_record.html' => '', 'binds.html' => ''),
'email.html' => '',
+ '0' => '',
'.hiddenfile.txt' => ''
)
);
@@ -30,7 +31,8 @@ class Directory_helper_test extends CI_TestCase {
'libraries' => array(
'benchmark.html',
'database' => array('active_record.html', 'binds.html'),
- 'email.html'
+ 'email.html',
+ '0'
)
);