git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests on php8
[plcapi.git]
/
tests
/
0CharsetTest.php
diff --git
a/tests/0CharsetTest.php
b/tests/0CharsetTest.php
index
8a62506
..
c5332ad
100644
(file)
--- a/
tests/0CharsetTest.php
+++ b/
tests/0CharsetTest.php
@@
-5,6
+5,8
@@
use PhpXmlRpc\Helper\Charset;
use PhpXmlRpc\Helper\Charset;
+include_once __DIR__ . '/PolyfillTestCase.php';
+
/**
* Test conversion between encodings
*
/**
* Test conversion between encodings
*
@@
-13,7
+15,7
@@
use PhpXmlRpc\Helper\Charset;
* chcp 28591 (latin1)
* chcp 65001 (utf8)
*/
* chcp 28591 (latin1)
* chcp 65001 (utf8)
*/
-class CharsetTest extends P
HPUnit_Framework_
TestCase
+class CharsetTest extends P
hpXmlRpc_Polyfill
TestCase
{
// Consolas font should render these properly
protected $runes = "ᚠᛇᚻ᛫ᛒᛦᚦ᛫ᚠᚱᚩᚠᚢᚱ᛫ᚠᛁᚱᚪ᛫ᚷᛖᚻᚹᛦᛚᚳᚢᛗ";
{
// Consolas font should render these properly
protected $runes = "ᚠᛇᚻ᛫ᛒᛦᚦ᛫ᚠᚱᚩᚠᚢᚱ᛫ᚠᛁᚱᚪ᛫ᚷᛖᚻᚹᛦᛚᚳᚢᛗ";
@@
-22,7
+24,7
@@
class CharsetTest extends PHPUnit_Framework_TestCase
protected $chinese = "我能吞下玻璃而不伤身体。";
protected $latinString;
protected $chinese = "我能吞下玻璃而不伤身体。";
protected $latinString;
- protected function set
U
p()
+ protected function set
_u
p()
{
// construct a latin string with all chars (except control ones)
$this->latinString = "\n\r\t";
{
// construct a latin string with all chars (except control ones)
$this->latinString = "\n\r\t";