blob: 89fe57d11bba3ff02c59ae5d18f758efc118ed17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Tests for Specialized String Functions (multi-byte) for phpMyAdmin
*
* @package PhpMyAdmin-test
*/
/*
* Include to test.
*/
require_once 'libraries/StringMB.class.php';
require_once 'test/libraries/PMA_StringNative_test.php';
/**
* Tests for Specialized String Functions (multi-byte) for phpMyAdmin
*
* @package PhpMyAdmin-test
*/
class PMA_String_Mb_Test extends PMA_StringNative_Test
{
protected $internal_encoding;
/**
* Setup function for test cases
*
* @access protected
* @return void
*/
protected function setUp()
{
if (@function_exists('mb_strlen')) {
$this->internal_encoding = mb_internal_encoding();
$this->testObject = new PMA_StringMB();
} else {
$this->markTestSkipped(
"Multibyte functions don't exist, skipping test."
);
}
}
/**
* TearDown function for tests, restores internal encoding
*
* @access protected
* @return void
*/
protected function tearDown()
{
if (isset($this->internal_encoding)) {
mb_internal_encoding($this->internal_encoding);
}
}
}
?>
|