截流自动化的商城平台
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.

Base64Test.php 280B

1234567891011121314
  1. <?php
  2. namespace Qiniu\Tests;
  3. use Qiniu;
  4. class Base64Test extends \PHPUnit_Framework_TestCase
  5. {
  6. public function testUrlSafe()
  7. {
  8. $a = '你好';
  9. $b = \Qiniu\base64_urlSafeEncode($a);
  10. $this->assertEquals($a, \Qiniu\base64_urlSafeDecode($b));
  11. }
  12. }