Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Add interfaces for data structures #13

Merged
merged 11 commits into from
May 30, 2019
Prev Previous commit
Next Next commit
getChallengeProvider test
  • Loading branch information
Firehed committed May 30, 2019
commit 3f2de1290239a70c9f1d7f37a0de9d2279015ddd
6 changes: 6 additions & 0 deletions tests/ResponseTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ protected function parseResponse(array $response): self
/**
* @covers ::fromJson
* @covers ::getSignature
* @covers ::getChallengeProvider
* @covers ::getClientData
*/
public function testValidJson()
Expand Down Expand Up @@ -55,6 +56,11 @@ public function testValidJson()
$response->getClientData(),
'ClientData was not parsed correctly'
);
$this->assertInstanceOf(
ChallengeProvider::class,
$response->getChallengeProvider(),
'Did not get a challenge provider'
);

$this->assertSame(
__METHOD__,
Expand Down