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

17 lines
294 B
PHP
Raw Permalink Normal View History

2023-09-26 18:09:46 +08:00
<?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));
}
}