Base64Test.php 280B

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