summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Woods <d.woods92@gmail.com>2015-03-30 21:25:27 +0200
committerDavid Woods <d.woods92@gmail.com>2015-03-30 21:25:27 +0200
commit7f6f3e3485c1ba9762a239cf279af49bb9bfc755 (patch)
tree0b4b1434bb5daa129e82a2d5ae58f000cfe76771
parent29704f8890bac6b0173ff60cbf3c3c383448cee2 (diff)
Fix for parsing error in PHP 5.2 and 5.3
-rw-r--r--tests/codeigniter/libraries/Form_validation_test.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/codeigniter/libraries/Form_validation_test.php b/tests/codeigniter/libraries/Form_validation_test.php
index 9ab16a00f..a25dcf747 100644
--- a/tests/codeigniter/libraries/Form_validation_test.php
+++ b/tests/codeigniter/libraries/Form_validation_test.php
@@ -346,7 +346,8 @@ class Form_validation_test extends CI_TestCase {
$this->form_validation->set_rules('foo', 'label', 'required');
$_POST = array('foo' => '');
$this->form_validation->run();
- $this->assertEquals($error_message, $this->form_validation->error_array()['foo']);
+ $err_arr = $this->form_validation->error_array();
+ $this->assertEquals($error_message, $err_arr['foo']);
}
public function test_error_string()