first commit
This commit is contained in:
16
vendor/qiniu/php-sdk/tests/Qiniu/Tests/Base64Test.php
vendored
Executable file
16
vendor/qiniu/php-sdk/tests/Qiniu/Tests/Base64Test.php
vendored
Executable file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
namespace Qiniu\Tests;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
use Qiniu;
|
||||
|
||||
class Base64Test extends TestCase
|
||||
{
|
||||
public function testUrlSafe()
|
||||
{
|
||||
$a = '你好';
|
||||
$b = \Qiniu\base64_urlSafeEncode($a);
|
||||
$this->assertEquals($a, \Qiniu\base64_urlSafeDecode($b));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user