summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/libraries/Form_validation_test.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2017-12-20 18:57:39 +0100
committerAndrey Andreev <narf@devilix.net>2017-12-20 19:02:17 +0100
commit20d9b0a9c03955da0010a3df91adcd9b8e6e7d58 (patch)
tree40a405d18778612b0c124a26036af77ec558e4c9 /tests/codeigniter/libraries/Form_validation_test.php
parent9e2dcd4a6a70a997d8d741e8f113660f16b9a609 (diff)
Merge pull request #5354 from carusogabriel/refactoring-tests
Refactoring tests Conflicts resolved: tests/codeigniter/core/Utf8_test.php tests/codeigniter/database/query_builder/group_test.php tests/codeigniter/libraries/Form_validation_test.php
Diffstat (limited to 'tests/codeigniter/libraries/Form_validation_test.php')
-rw-r--r--tests/codeigniter/libraries/Form_validation_test.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codeigniter/libraries/Form_validation_test.php b/tests/codeigniter/libraries/Form_validation_test.php
index fa9e86c97..3280f5bd8 100644
--- a/tests/codeigniter/libraries/Form_validation_test.php
+++ b/tests/codeigniter/libraries/Form_validation_test.php
@@ -358,7 +358,7 @@ class Form_validation_test extends CI_TestCase {
$this->form_validation->run();
$error_msg = $this->form_validation->error('foo');
- $this->assertTrue(strrpos($error_msg, $prefix) === 0);
+ $this->assertStringStartsWith($prefix, $error_msg);
$this->assertTrue(strrpos($error_msg, $suffix, -strlen($suffix)) === (strlen($error_msg) - strlen($suffix)));
$_POST = array();