Skip to content

Commit 50738ac

Browse files
committed
additions
1 parent 165883d commit 50738ac

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

tests/AdvancedCMS/SignerInfoTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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());
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
}

0 commit comments

Comments
 (0)