diff options
author | David Woods <d.woods92@gmail.com> | 2015-03-30 21:25:27 +0200 |
---|---|---|
committer | David Woods <d.woods92@gmail.com> | 2015-03-30 21:25:27 +0200 |
commit | 7f6f3e3485c1ba9762a239cf279af49bb9bfc755 (patch) | |
tree | 0b4b1434bb5daa129e82a2d5ae58f000cfe76771 /tests | |
parent | 29704f8890bac6b0173ff60cbf3c3c383448cee2 (diff) |
Fix for parsing error in PHP 5.2 and 5.3
Diffstat (limited to 'tests')
-rw-r--r-- | tests/codeigniter/libraries/Form_validation_test.php | 3 |
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() |