mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-03 18:18:05 +01:00
Tests/ASN1: update unit tests to work on 2.0 branch
This commit is contained in:
parent
bac775ecd5
commit
730070b78f
@ -395,7 +395,7 @@ class Unit_File_ASN1Test extends PhpseclibTestCase
|
|||||||
|
|
||||||
public function testNullGarbage()
|
public function testNullGarbage()
|
||||||
{
|
{
|
||||||
$asn1 = new File_ASN1();
|
$asn1 = new ASN1();
|
||||||
|
|
||||||
$em = pack('H*', '3080305c0609608648016503040201054f8888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888804207509e5bda0c762d2bac7f90d758b5b2263fa01ccbc542ab5e3df163be08e6ca9');
|
$em = pack('H*', '3080305c0609608648016503040201054f8888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888804207509e5bda0c762d2bac7f90d758b5b2263fa01ccbc542ab5e3df163be08e6ca9');
|
||||||
$decoded = $asn1->decodeBER($em);
|
$decoded = $asn1->decodeBER($em);
|
||||||
@ -408,7 +408,7 @@ class Unit_File_ASN1Test extends PhpseclibTestCase
|
|||||||
|
|
||||||
public function testOIDGarbage()
|
public function testOIDGarbage()
|
||||||
{
|
{
|
||||||
$asn1 = new File_ASN1();
|
$asn1 = new ASN1();
|
||||||
|
|
||||||
$em = pack('H*', '3080305c065860864801650304020188888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888050004207509e5bda0c762d2bac7f90d758b5b2263fa01ccbc542ab5e3df163be08e6ca9');
|
$em = pack('H*', '3080305c065860864801650304020188888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888050004207509e5bda0c762d2bac7f90d758b5b2263fa01ccbc542ab5e3df163be08e6ca9');
|
||||||
$decoded = $asn1->decodeBER($em);
|
$decoded = $asn1->decodeBER($em);
|
||||||
|
Loading…
Reference in New Issue
Block a user