mirror of
https://git.yoomoney.ru/scm/sdk/yookassa-sdk-php.git
synced 2026-10-14 19:45:18 +00:00
Оптимизация работы с Unicode в json
This commit is contained in:
@@ -1052,6 +1052,17 @@ class ClientTest extends TestCase
|
||||
->getPaymentInfo(Random::str(36));
|
||||
}
|
||||
|
||||
public function testEncodeMultibyteData()
|
||||
{
|
||||
$instance = new TestClient();
|
||||
|
||||
$value = array('hello' => 'Привет', 'olleh' => 'سلام');
|
||||
$result = $instance->encode($value);
|
||||
|
||||
self::assertTrue(strpos($result, 'Привет') !== false);
|
||||
self::assertTrue(strpos($result, 'سلام') !== false);
|
||||
}
|
||||
|
||||
public function testEncodeInvalidData()
|
||||
{
|
||||
$instance = new TestClient();
|
||||
|
||||
Reference in New Issue
Block a user