From: terrafrost <terrafrost@gmail.com>
Date: Sat, 24 Feb 2024 13:23:49 -0600
Subject: Tests: phpseclib 3.0 updates

Origin: upstream, https://github.com/phpseclib/phpseclib/commit/baba459ca1b2619b173805ca3dfedc4e5a88eac6
---
 phpseclib/File/ASN1.php      | 2 +-
 tests/Unit/File/ASN1Test.php | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/phpseclib/File/ASN1.php b/phpseclib/File/ASN1.php
index 41ee514..26bc0bf 100644
--- a/phpseclib/File/ASN1.php
+++ b/phpseclib/File/ASN1.php
@@ -1151,7 +1151,7 @@ abstract class ASN1
         $len = strlen($content);
         // see https://github.com/openjdk/jdk/blob/2deb318c9f047ec5a4b160d66a4b52f93688ec42/src/java.base/share/classes/sun/security/util/ObjectIdentifier.java#L55
         if ($len > 4096) {
-            //user_error('Object Identifier size is limited to 4096 bytes');
+            //throw new \RuntimeException("Object identifier size is limited to 4096 bytes ($len bytes present)");
             return false;
         }
 
diff --git a/tests/Unit/File/ASN1Test.php b/tests/Unit/File/ASN1Test.php
index 72425d8..b39ce46 100644
--- a/tests/Unit/File/ASN1Test.php
+++ b/tests/Unit/File/ASN1Test.php
@@ -456,7 +456,6 @@ class ASN1Test extends PhpseclibTestCase
         $cert = file_get_contents(dirname(__FILE__) . '/ASN1/mal-cert-02.der');
 
         $asn1 = new ASN1();
-        //$this->setExpectedException('PHPUnit_Framework_Error_Notice');
         $decoded = $asn1->decodeBER($cert);
         $this->assertFalse($decoded[0]);
 
