mirror of
https://github.com/danog/tgseclib.git
synced 2024-11-27 04:34:45 +01:00
ASN1: add unit test for non-constructed context-specific change
This commit is contained in:
parent
c6ad2b69ba
commit
a2f4a2cbba
@ -268,4 +268,13 @@ class Unit_File_ASN1Test extends PhpseclibTestCase
|
||||
$decoded = $asn1->decodeBER(base64_decode($str));
|
||||
$this->assertCount(3, $decoded[0]['content']);
|
||||
}
|
||||
|
||||
/**
|
||||
* @group github477
|
||||
*/
|
||||
public function contextSpecificNonConstructed()
|
||||
{
|
||||
$decoded = $asn1->decodeBER(base64_decode('MBaAFJtUo7c00HsI5EPZ4bkICfkOY2Pv'));
|
||||
$this->assertInternalType('string', $decoded[0]['content'][0]['content']);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user