File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ public function testUnsigned()
5050
5151 // just test no exception
5252 new UnsignedAttribute (Sequence::fromBinary ($ binary ));
53+
54+ $ unsignedAttributes ->appendAttribute ($ unsignedAttribute );
55+ $ unsignedAttributes ->replaceAttribute ($ unsignedAttribute ->getIdentifier ()->__toString (), $ unsignedAttribute );
56+
5357 }
5458
5559 self ::assertInstanceOf (RevocationValues::class, $ unsignedAttributes ->getRevocationValues ());
Original file line number Diff line number Diff line change 1+ <?php
2+ declare (strict_types=1 );
3+
4+ namespace Falseclock \AdvancedCMS \Test ;
5+
6+ use Falseclock \AdvancedCMS \TimeStampResponse ;
7+ use Falseclock \AdvancedCMS \TimeStampToken ;
8+ use FG \ASN1 \Universal \Sequence ;
9+
10+ class TimeStampTokenTest extends MainTest
11+ {
12+ public function testBasic ()
13+ {
14+ $ TimeStampResponse = TimeStampResponse::createFromContent ($ this ->getTimeStampResponse ());
15+ self ::assertInstanceOf (TimeStampResponse::class, $ TimeStampResponse );
16+ self ::assertInstanceOf (TimeStampToken::class, TimeStampToken::createFromTimeStampResponse ($ TimeStampResponse ));
17+ self ::assertInstanceOf (Sequence::class, TimeStampToken::sequenceFromTimeStampResponse ($ TimeStampResponse ));
18+ }
19+ }
You can’t perform that action at this time.
0 commit comments