Skip to content

Commit

Permalink
PHPUnit 11 (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus authored Feb 29, 2024
1 parent eb87942 commit 111fae9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,18 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.50",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan": "^1.10.59",
"phpunit/phpunit": "^10.5.10",
"phpstan/phpstan-phpunit": "^1.3",
"phpunit/phpunit": "^10.5.10 || ^11.0.3",
"symfony/filesystem": "^6.4 || ^7",
"symfony/framework-bundle": "^6.4 || ^7",
"symfony/twig-bundle": "^6.4 || ^7"
},
"config": {
"allow-plugins": {
"phpstan/extension-installer": true
},
"sort-packages": true
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="vendor/autoload.php"
bootstrap="tests/bootstrap.php"
failOnRisky="true"
failOnWarning="true"
cacheDirectory=".phpunit.cache">
Expand Down
10 changes: 10 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

declare(strict_types=1);

use Symfony\Component\ErrorHandler\ErrorHandler;

require dirname(__DIR__).'/vendor/autoload.php';

// see https://github.com/symfony/symfony/issues/53812#issuecomment-1962740145
set_exception_handler([new ErrorHandler(), 'handleException']);

0 comments on commit 111fae9

Please sign in to comment.