Skip to content

Commit f5d08bf

Browse files
metsmamrts
authored andcommitted
Update dependencies.
WE2-879 Signed-off-by: Raul Metsma <[email protected]>
1 parent 4524c42 commit f5d08bf

File tree

4 files changed

+26
-24
lines changed

4 files changed

+26
-24
lines changed

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
],
1212
"require-dev": {
13-
"phpunit/phpunit": "^9.6.14"
13+
"phpunit/phpunit": "^11.0.4"
1414
},
1515
"autoload": {
1616
"psr-4": {
@@ -32,13 +32,13 @@
3232
}
3333
],
3434
"require": {
35-
"phpseclib/phpseclib": "3.0.34",
36-
"guzzlehttp/psr7": "2.4.5",
37-
"web-eid/ocsp-php": "1.0.1",
35+
"phpseclib/phpseclib": "3.0.*",
36+
"guzzlehttp/psr7": "2.6.2",
37+
"web-eid/ocsp-php": "dev-main",
3838
"psr/log": "^3.0"
3939
},
4040
"scripts": {
4141
"fix-php": ["prettier src/**/* --write", "prettier examples/src/* --write"],
42-
"test": "phpunit"
42+
"test": "phpunit --no-coverage"
4343
}
4444
}

phpunit.xml.dist

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" backupStaticAttributes="false" colors="true" verbose="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3-
<coverage>
4-
<include>
5-
<directory suffix=".php">src/</directory>
6-
</include>
7-
<report>
8-
<clover outputFile="build/logs/clover.xml" />
9-
<html outputDirectory="build/coverage" />
10-
<text outputFile="build/coverage.txt" />
11-
</report>
12-
</coverage>
13-
<testsuites>
14-
<testsuite name="Web-eID PHP Test Suite">
15-
<directory>tests</directory>
16-
</testsuite>
17-
</testsuites>
18-
</phpunit>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
3+
<coverage>
4+
<report>
5+
<clover outputFile="build/logs/clover.xml"/>
6+
<html outputDirectory="build/coverage"/>
7+
<text outputFile="build/coverage.txt"/>
8+
</report>
9+
</coverage>
10+
<testsuites>
11+
<testsuite name="Web-eID PHP Test Suite">
12+
<directory>tests</directory>
13+
</testsuite>
14+
</testsuites>
15+
<source>
16+
<include>
17+
<directory suffix=".php">src/</directory>
18+
</include>
19+
</source>
20+
</phpunit>

tests/testutil/OcspServiceMaker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private static function getAiaOcspServiceConfiguration(): AiaOcspServiceConfigur
5252
{
5353
return new AiaOcspServiceConfiguration(
5454
new UriCollection(new Uri(self::TEST_ESTEID_2015)),
55-
CertificateValidator::buildTrustFromCertificates([Certificates::getTestEsteid2018CA(), Certificates::getTestEsteid2018CAGov(), Certificates::getTestEsteid2015CA()])
55+
CertificateValidator::buildTrustFromCertificates([Certificates::getTestEsteid2018CA(), Certificates::getTestEsteid2018CAGov()])
5656
);
5757
}
5858

tests/validator/certvalidators/SubjectCertificateNotRevokedValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function testWhenOcspResponseHasInvalidResponderCertThenThrows(): void
158158
public function testWhenOcspResponseHasInvalidTagThenThrows(): void
159159
{
160160
$this->expectException(UserCertificateOCSPCheckFailedException::class);
161-
$this->expectExceptionMessage("User certificate revocation check has failed: Exception: Trying to access array offset on null");
161+
$this->expectExceptionMessage("User certificate revocation check has failed: Exception: Could not decode OCSP response");
162162
$validator = self::getSubjectCertificateNotRevokedValidatorWithAiaOcspUsingResponse(
163163
pack("c*", ...self::buildOcspResponseBodyWithInvalidTag())
164164
);

0 commit comments

Comments
 (0)