diff options
author | Andrey Andreev <narf@devilix.net> | 2017-06-19 10:33:58 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2017-06-19 10:33:58 +0200 |
commit | 6c7a4266410070d30f8f6bcdf9c9e67f3d6478e3 (patch) | |
tree | f0aab8f6f5e781d5947b1a5553b6648eb7b7a4ab /tests/codeigniter/core/compat/mbstring_test.php | |
parent | 2459285b91d6fc4f5099f9f597529cce1059cb33 (diff) |
[ci skip] 3.1.5 release
Diffstat (limited to 'tests/codeigniter/core/compat/mbstring_test.php')
-rw-r--r-- | tests/codeigniter/core/compat/mbstring_test.php | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/tests/codeigniter/core/compat/mbstring_test.php b/tests/codeigniter/core/compat/mbstring_test.php deleted file mode 100644 index 415222446..000000000 --- a/tests/codeigniter/core/compat/mbstring_test.php +++ /dev/null @@ -1,54 +0,0 @@ -<?php - -class mbstring_test extends CI_TestCase { - - public function test_bootstrap() - { - if (MB_ENABLED) - { - return $this->markTestSkipped('ext/mbstring is loaded'); - } - - $this->assertTrue(function_exists('mb_strlen')); - $this->assertTrue(function_exists('mb_substr')); - } - - // ------------------------------------------------------------------------ - - /** - * @depends test_bootstrap - */ - public function test_mb_strlen() - { - $this->assertEquals(ICONV_ENABLED ? 4 : 8, mb_strlen('тест')); - $this->assertEquals(ICONV_ENABLED ? 4 : 8, mb_strlen('тест', 'UTF-8')); - } - - // ------------------------------------------------------------------------ - - /** - * @depends test_boostrap - */ - public function test_mb_strpos() - { - $this->assertEquals(ICONV_ENABLED ? 3 : 6, mb_strpos('тест', 'с')); - $this->assertFalse(mb_strpos('тест', 'с', 3)); - $this->assertEquals(ICONV_ENABLED ? 3 : 6, mb_strpos('тест', 'с', 1, 'UTF-8')); - } - - // ------------------------------------------------------------------------ - - /** - * @depends test_boostrap - */ - public function test_mb_substr() - { - $this->assertEquals(ICONV_ENABLED ? 'стинг' : 'естинг', mb_substr('тестинг', 2)); - $this->assertEquals(ICONV_ENABLED ? 'нг' : 'г', mb_substr('тестинг', -2)); - $this->assertEquals(ICONV_ENABLED ? 'ст' : 'е', mb_substr('тестинг', 2, 2)); - $this->assertEquals(ICONV_ENABLED ? 'стинг' : 'естинг', mb_substr('тестинг', 2, 'UTF-8')); - $this->assertEquals(ICONV_ENABLED ? 'нг' : 'г', mb_substr('тестинг', -2, 'UTF-8')); - $this->assertEquals(ICONV_ENABLED ? 'ст' : 'е', mb_substr('тестинг', 2, 2, 'UTF-8')); - } - -}
\ No newline at end of file |