summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-02-15 20:44:02 +0100
committerAndrey Andreev <narf@devilix.net>2014-02-15 20:44:02 +0100
commitcd74d36ae1ac34c25271b5ff81cc2fd8df099724 (patch)
tree75765a7dbf41fb80ab71a20b611cfd1c93cb8fbb /tests
parent81f036753272391360ba5b64e6dd93c4101a8733 (diff)
Rename CI_Utf8::_is_ascii() to is_ascii() and make it public
No reason for it to be protected.
Diffstat (limited to 'tests')
-rw-r--r--tests/codeigniter/core/Utf8_test.php4
-rw-r--r--tests/mocks/core/utf8.php5
2 files changed, 2 insertions, 7 deletions
diff --git a/tests/codeigniter/core/Utf8_test.php b/tests/codeigniter/core/Utf8_test.php
index 71299134e..2cf404841 100644
--- a/tests/codeigniter/core/Utf8_test.php
+++ b/tests/codeigniter/core/Utf8_test.php
@@ -18,8 +18,8 @@ class Utf8_test extends CI_TestCase {
public function test_is_ascii()
{
- $this->assertTrue($this->utf8->is_ascii_test('foo bar'));
- $this->assertFalse($this->utf8->is_ascii_test('тест'));
+ $this->assertTrue($this->utf8->is_ascii('foo bar'));
+ $this->assertFalse($this->utf8->is_ascii('тест'));
}
} \ No newline at end of file
diff --git a/tests/mocks/core/utf8.php b/tests/mocks/core/utf8.php
index 30b78adfe..c8214a62a 100644
--- a/tests/mocks/core/utf8.php
+++ b/tests/mocks/core/utf8.php
@@ -13,9 +13,4 @@ class Mock_Core_Utf8 extends CI_Utf8 {
defined('UTF8_ENABLED') OR define('UTF8_ENABLED', TRUE);
}
- public function is_ascii_test($str)
- {
- return $this->_is_ascii($str);
- }
-
} \ No newline at end of file