for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AtlassianConnectBundle\Tests\Functional;
use AtlassianConnectBundle\Service\QSHGenerator;
use Firebase\JWT\JWT;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\DependencyInjection\ContainerInterface;
abstract class AbstractWebTestCase extends WebTestCase
{
public static function getParentContainer(): ContainerInterface
if (method_exists(self::class, 'getContainer')) {
return self::getContainer();
}
return self::$container;
protected static function getKernelClass(): string
return App\Kernel::class;
public function getTenantJWTCode(string $iss = 'client_key'): string
return JWT::encode([
'iss' => $iss,
'iat' => time(),
'exp' => strtotime('+1 day'),
'qsh' => QSHGenerator::generate('/protected_route', 'GET'),
'sub' => 'admin',
], 'shared_secret');