ExampleTest.php 558 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace Tests\Unit;
  3. use App\Module\AppGame\SessionApp;
  4. use PHPUnit\Framework\TestCase;
  5. use Uraus\Kku\Response;
  6. class ExampleTest extends TestCase
  7. {
  8. /**
  9. * A basic test example.
  10. */
  11. public function test_that_true_is_true(): void
  12. {
  13. dump(SessionApp::getSessionId());
  14. $base64 ='ogYHCI2utsDtMg==';
  15. $b2 = base64_decode($base64);
  16. dump($b2);
  17. $resp =new Response();
  18. $resp->mergeFromString($b2);
  19. dump($resp->serializeToJsonString());
  20. $this->assertTrue(true);
  21. }
  22. }