Base64Test.php 280 B

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. }