diff options
author | Andrey Andreev <narf@devilix.net> | 2020-07-09 09:42:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-09 09:42:15 +0200 |
commit | ee442e36c8b16a9b4a09a859abe8e3dd3458be35 (patch) | |
tree | 5d4462520c216fdaf1615914a7c9bda865df2274 /tests/codeigniter | |
parent | 1428072599798395b04a545cfe483707cd2aaaca (diff) | |
parent | 40095dd11de792afe6c4bdba87c7d54076d6d6e3 (diff) |
Merge pull request #5946 from sapics/travis/php74
Pass the travis php7.4 test
Diffstat (limited to 'tests/codeigniter')
-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('á é í ó ú ñ ü')); } |