OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
firebase
/
vendor
/
kreait
/
firebase-tokens
/
tests
/
JWT
/
Action
/
FetchGooglePublicKeys
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/12/2024 10:36:30 AM
rwxr-xr-x
📄
TestCase.php
981 bytes
08/12/2024 10:36:30 AM
rw-r--r--
📄
WithGuzzle6Test.php
2.36 KB
08/12/2024 10:36:30 AM
rw-r--r--
📄
WithPsr16SimpleCacheTest.php
3.71 KB
08/12/2024 10:36:30 AM
rw-r--r--
📄
WithPsr6CacheTest.php
4.22 KB
08/12/2024 10:36:30 AM
rw-r--r--
Editing: TestCase.php
Close
<?php declare(strict_types=1); namespace Kreait\Firebase\JWT\Tests\Action\FetchGooglePublicKeys; use DateTimeImmutable; use Kreait\Clock\FrozenClock; use Kreait\Firebase\JWT\Action\FetchGooglePublicKeys; use Kreait\Firebase\JWT\Action\FetchGooglePublicKeys\Handler; /** * @internal */ abstract class TestCase extends \PHPUnit\Framework\TestCase { abstract protected function createHandler(): Handler; protected FrozenClock $clock; protected FetchGooglePublicKeys $action; protected function setUp(): void { $now = new DateTimeImmutable(); $now = $now->setTimestamp($now->getTimestamp()); // Trim microseconds, just to be sure $this->clock = new FrozenClock($now); $this->action = FetchGooglePublicKeys::fromUrl('bogus'); } public function testItReturnsKeys(): void { $this->createHandler()->handle($this->action); $this->addToAssertionCount(1); } }