Skip to content

Commit 91b1010

Browse files
committed
Add test descriptions to DPOPTest.
1 parent 4f25101 commit 91b1010

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/unit/Utils/DPOPTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ private function getWrongKey()
6868
/////////////////////////////////// TESTS \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
6969

7070
/**
71+
* @testdox Dpop SHOULD complain WHEN asked to validate a DPOP with wrong header type
72+
*
7173
* @covers ::validateDpop
7274
*/
7375
public function testValidateDpopWithWrongTyp(): void
@@ -83,6 +85,8 @@ public function testValidateDpopWithWrongTyp(): void
8385
}
8486

8587
/**
88+
* @testdox Dpop SHOULD complain WHEN asked to validate a DPOP with encryption algorithm "none"
89+
*
8690
* @covers ::validateDpop
8791
*/
8892
public function testValidateDpopWithAlgNone(): void
@@ -98,6 +102,8 @@ public function testValidateDpopWithAlgNone(): void
98102
}
99103

100104
/**
105+
* @testdox Dpop SHOULD complain WHEN asked to validate a DPOP with mismatched public key
106+
*
101107
* @covers ::validateDpop
102108
*/
103109
public function testValidateDpopWithWrongKey(): void
@@ -120,6 +126,8 @@ public function testValidateDpopWithWrongKey(): void
120126
}
121127

122128
/**
129+
* @testdox Dpop SHOULD return true WHEN asked to validate a valid DPOP
130+
*
123131
* @covers ::validateDpop
124132
*/
125133
public function testValidateDpopWithCorrectToken(): void

0 commit comments

Comments
 (0)