summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2020-07-09 09:42:15 +0200
committerAndrey Andreev <narf@devilix.net>2020-07-09 09:47:41 +0200
commit20ddc4692ed4d91cfbeae3354c0e5ef518b882a3 (patch)
tree53833260c07d9801057d6511279536785e9f80c1 /tests
parentf27b3409b00c6a08d89c1e6b06e5f1b9463d703d (diff)
Merge pull request #5946 from sapics/travis/php74
Pass the travis php7.4 test
Diffstat (limited to 'tests')
-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 7a7dc0a12..b6902c016 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('á é í ó ú ñ ü'));
}