summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/helpers/text_helper_test.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2020-07-09 09:42:15 +0200
committerGitHub <noreply@github.com>2020-07-09 09:42:15 +0200
commitee442e36c8b16a9b4a09a859abe8e3dd3458be35 (patch)
tree5d4462520c216fdaf1615914a7c9bda865df2274 /tests/codeigniter/helpers/text_helper_test.php
parent1428072599798395b04a545cfe483707cd2aaaca (diff)
parent40095dd11de792afe6c4bdba87c7d54076d6d6e3 (diff)
Merge pull request #5946 from sapics/travis/php74
Pass the travis php7.4 test
Diffstat (limited to 'tests/codeigniter/helpers/text_helper_test.php')
-rw-r--r--tests/codeigniter/helpers/text_helper_test.php7
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('á é í ó ú ñ ü'));
}