Skip to content

Commit a25dc9d

Browse files
committed
makes new tests for verifyIdToken php-53-array friendly
1 parent 3ae19bb commit a25dc9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/general/AuthTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function testVerifySignedJwtWithMultipleIssuers()
178178
$id_token,
179179
$certs,
180180
"client_id",
181-
['system.gserviceaccount.com', 'https://system.gserviceaccount.com']
181+
array('system.gserviceaccount.com', 'https://system.gserviceaccount.com')
182182
);
183183
$this->assertEquals(self::USER_ID, $ticket->getUserId());
184184
// Check that payload and envelope got filled in.
@@ -199,7 +199,7 @@ public function testVerifySignedJwtWithBadIssuer()
199199
)
200200
);
201201

202-
$issuers = ['system.gserviceaccount.com', 'https://system.gserviceaccount.com'];
202+
$issuers = array('system.gserviceaccount.com', 'https://system.gserviceaccount.com');
203203
$this->checkIdTokenFailure($id_token, 'Invalid issuer', $issuers[0]);
204204
$this->checkIdTokenFailure($id_token, 'Invalid issuer', $issuers);
205205
}

0 commit comments

Comments
 (0)