summaryrefslogtreecommitdiffstats
path: root/tests/mocks/ci_testcase.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mocks/ci_testcase.php')
-rw-r--r--tests/mocks/ci_testcase.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/mocks/ci_testcase.php b/tests/mocks/ci_testcase.php
index 980e912c5..e581d4b02 100644
--- a/tests/mocks/ci_testcase.php
+++ b/tests/mocks/ci_testcase.php
@@ -275,6 +275,16 @@ class CI_TestCase extends PHPUnit_Framework_TestCase {
*/
public function ci_vfs_clone($path)
{
+ // Check for array
+ if (is_array($path))
+ {
+ foreach ($path as $file)
+ {
+ $this->ci_vfs_clone($file);
+ }
+ return;
+ }
+
// Get real file contents
$content = file_get_contents(PROJECT_BASE.$path);
if ($content === FALSE)