You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
280 B
15 lines
280 B
11 months ago
|
<?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));
|
||
|
}
|
||
|
}
|