Tests/ASN1: update unit tests to work on 2.0 branch

This commit is contained in:
terrafrost 2021-04-03 13:25:56 -05:00
parent bac775ecd5
commit 730070b78f

View File

@ -395,7 +395,7 @@ class Unit_File_ASN1Test extends PhpseclibTestCase
public function testNullGarbage()
{
$asn1 = new File_ASN1();
$asn1 = new ASN1();
$em = pack('H*', '3080305c0609608648016503040201054f8888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888804207509e5bda0c762d2bac7f90d758b5b2263fa01ccbc542ab5e3df163be08e6ca9');
$decoded = $asn1->decodeBER($em);
@ -408,7 +408,7 @@ class Unit_File_ASN1Test extends PhpseclibTestCase
public function testOIDGarbage()
{
$asn1 = new File_ASN1();
$asn1 = new ASN1();
$em = pack('H*', '3080305c065860864801650304020188888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888050004207509e5bda0c762d2bac7f90d758b5b2263fa01ccbc542ab5e3df163be08e6ca9');
$decoded = $asn1->decodeBER($em);