Skip to content

Commit 44d4a95

Browse files
committed
Bump phpseclib/phpseclib to 3.0.51 and fix tests
WE2-1202 Signed-off-by: Mart Somermaa <mrts@users.noreply.github.com>
1 parent e1d23eb commit 44d4a95

4 files changed

Lines changed: 57 additions & 51 deletions

File tree

composer.lock

Lines changed: 32 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/composer.lock

Lines changed: 22 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/util/CollectionsUtilTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testUriCollection(): void
5151
public function testGetSubjectDns(): void
5252
{
5353
$x509Collection = X509Collection::getSubjectDNs(null, Certificates::getTestEsteid2018CA());
54-
$this->assertEquals("C=EE, O=SK ID Solutions AS/2.5.4.97=NTREE-10747013, CN=TEST of ESTEID2018", $x509Collection[0]);
54+
$this->assertEquals("C=EE, O=SK ID Solutions AS/organizationIdentifier=NTREE-10747013, CN=TEST of ESTEID2018", $x509Collection[0]);
5555
}
5656

5757
public function testWhenUriIsWrongTypeThenThrows(): void

tests/validator/ocsp/OcspServiceProviderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function testWhenDesignatedOcspServiceConfigurationProvidedThenCreatesDes
5555
public function testWhenAiaOcspServiceConfigurationProvidedThenCreatesAiaOcspService(): void
5656
{
5757
// In PHP validation is different
58-
// we need to use TEST_of_EE-GovCA2018.pem.crt (getAiaOcspServiceConfiguration()) certificate for validation
58+
// we need to use TEST_of_EE-GovCA2018.pem.crt (getAiaOcspServiceConfiguration()) certificate for validation
5959

6060
$ocspServiceProvider = OcspServiceMaker::getAiaOcspServiceProvider();
6161

@@ -72,7 +72,7 @@ public function testWhenAiaOcspServiceConfigurationProvidedThenCreatesAiaOcspSer
7272
$this->assertFalse($service2015->doesSupportNonce());
7373

7474
$this->expectException(CertificateNotTrustedException::class);
75-
$this->expectExceptionMessage("Certificate C=EE, O=AS Sertifitseerimiskeskus/2.5.4.97=NTREE-10747013, CN=TEST of ESTEID-SK 2015 is not trusted");
75+
$this->expectExceptionMessage("Certificate C=EE, O=AS Sertifitseerimiskeskus/organizationIdentifier=NTREE-10747013, CN=TEST of ESTEID-SK 2015 is not trusted");
7676
$service2015->validateResponderCertificate(Certificates::getTestEsteid2015CA(), new DateTime("Thursday, August 26, 2021 5:46:40 PM"));
7777
}
7878

0 commit comments

Comments
 (0)