summaryrefslogtreecommitdiffstats
path: root/tests/mocks/ci_testcase.php
diff options
context:
space:
mode:
authordchill42 <dchill42@gmail.com>2012-10-14 21:44:39 +0200
committerdchill42 <dchill42@gmail.com>2012-10-14 23:28:26 +0200
commite9435dc7e5a4a9779eb83d8adf172fabf47ab5a6 (patch)
tree5e1f5a24c6ee9f4e72a0970e4392223265d1f02a /tests/mocks/ci_testcase.php
parent93ec20b8d9afbf8cb22ec6383b7fb24fe70330e8 (diff)
Adapted DB for VFS changes and fixed Common case in Bootstrap.php
Signed-off-by: dchill42 <dchill42@gmail.com>
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)