Skip to content

Commit 6561a17

Browse files
Update dependency phpunit/phpunit to v11 (#25)
* Update dependency phpunit/phpunit to v11 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Frank Dekker <[email protected]>
1 parent 7854aca commit 6561a17

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"phpstan/phpstan-phpunit": "^1.3",
3333
"phpstan/phpstan-strict-rules": "^1.5",
3434
"phpstan/phpstan-symfony": "^1.3",
35-
"phpunit/phpunit": "^10.4",
35+
"phpunit/phpunit": "^10.4 || ^11.0",
3636
"ramsey/uuid": "^4.7",
3737
"roave/security-advisories": "dev-latest",
3838
"sentry/sentry": "^4.2",

phpunit.xml.dist

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd"
4+
bootstrap="tests/bootstrap.php"
45
failOnRisky="true"
56
failOnWarning="true"
67
beStrictAboutChangesToGlobalState="true"

tests/bootstrap.php

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Symfony\Component\ErrorHandler\ErrorHandler;
6+
7+
// PHPUnit 11 compatibility. Symfony does not unregister error handlers (yet)
8+
ErrorHandler::register(null, false);

0 commit comments

Comments
 (0)