diff options
author | sapics <gv.nishino@gmail.com> | 2020-04-13 16:40:04 +0200 |
---|---|---|
committer | sapics <gv.nishino@gmail.com> | 2020-04-13 16:53:22 +0200 |
commit | 16bc99b45d30953147721cd06bbb21fbe05c71b3 (patch) | |
tree | 47a64797c316422c6e9bb90e114d9f7f3ede981b /tests/codeigniter/helpers | |
parent | bbe58acbefcbe24afddd7f61cf61fda72632d137 (diff) |
Fix error in Travis php7.4 test
Diffstat (limited to 'tests/codeigniter/helpers')
-rw-r--r-- | tests/codeigniter/helpers/text_helper_test.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/codeigniter/helpers/text_helper_test.php b/tests/codeigniter/helpers/text_helper_test.php index 36465f203..e51d96a29 100644 --- a/tests/codeigniter/helpers/text_helper_test.php +++ b/tests/codeigniter/helpers/text_helper_test.php @@ -64,7 +64,12 @@ class Text_helper_test extends CI_TestCase { public function test_convert_accented_characters() { - $this->ci_vfs_clone('application/config/foreign_chars.php'); + $path = 'application/config/foreign_chars.php'; + $this->ci_vfs_clone($path); + if (is_php('7.4')) + { + copy(PROJECT_BASE.$path, APPPATH.'../'.$path); + } $this->assertEquals('AAAeEEEIIOOEUUUeY', convert_accented_characters('ÀÂÄÈÊËÎÏÔŒÙÛÜŸ')); $this->assertEquals('a e i o u n ue', convert_accented_characters('á é í ó ú ñ ü')); } |