summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/core/Config_test.php
diff options
context:
space:
mode:
authorand-ers <anders_persson_360@yahoo.se>2013-01-03 16:05:12 +0100
committerand-ers <anders_persson_360@yahoo.se>2013-01-03 16:05:12 +0100
commitb3ec94252c0c96e0093fff4736fb10e80c615b24 (patch)
tree6783f7ed58f1ab2647755607ef49ab6a0b2e004e /tests/codeigniter/core/Config_test.php
parent594bfd726a1ecb4ac87cf035928395ed76b895b9 (diff)
Replaced array_push function reference with a faster ordinary element insertion method
Diffstat (limited to 'tests/codeigniter/core/Config_test.php')
-rw-r--r--tests/codeigniter/core/Config_test.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codeigniter/core/Config_test.php b/tests/codeigniter/core/Config_test.php
index be426d070..e3be8a3fc 100644
--- a/tests/codeigniter/core/Config_test.php
+++ b/tests/codeigniter/core/Config_test.php
@@ -195,7 +195,7 @@ class Config_test extends CI_TestCase {
$pkg_dir = 'package';
$this->ci_vfs_create($file.'.php', '<?php $config = '.var_export($cfg2, TRUE).';', $this->ci_app_root,
array($pkg_dir, 'config'));
- array_push($this->config->_config_paths, $this->ci_vfs_path($pkg_dir.'/', APPPATH));
+ $this->config->_config_paths[] = $this->ci_vfs_path($pkg_dir.'/', APPPATH);
$this->assertTrue($this->config->load($file, TRUE));
$this->assertEquals(array_merge($cfg, $cfg2), $this->config->item($file));
array_pop($this->config->_config_paths);