Skip to content

Commit

Permalink
Read environment variables with Psl\Env\get_var()
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegamez committed Jan 2, 2024
1 parent 0ed6c16 commit e670c21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Lcobucci\JWT\Encoding\JoseEncoder;
use Lcobucci\JWT\Token\Builder as LcobucciBuilder;
use PHPUnit\Framework\TestCase as PHPUnitTestCase;
use Psl\Env;

abstract class TestCase extends PHPUnitTestCase
{
Expand All @@ -34,7 +35,7 @@ protected static function variables(): Variables
*/
protected static function tenantId(): string
{
$tenantId = $_ENV['FIREBASE_TENANT_ID'];
$tenantId = Env\get_var('FIREBASE_TENANT_ID');
assert(is_string($tenantId) && $tenantId !== '');

return $tenantId;
Expand Down

0 comments on commit e670c21

Please sign in to comment.