suyuan/vendor/qiniu/php-sdk/tests/Qiniu/Tests/Base64Test.php

15 lines
280 B
PHP
Raw Normal View History

2023-10-14 13:36:39 +08:00
<?php
namespace Qiniu\Tests;
use Qiniu;
class Base64Test extends \PHPUnit_Framework_TestCase
{
public function testUrlSafe()
{
$a = '你好';
$b = \Qiniu\base64_urlSafeEncode($a);
$this->assertEquals($a, \Qiniu\base64_urlSafeDecode($b));
}
}