Skip to content

Commit c6d76ba

Browse files
committed
Add phpunit 12 as a test option
Add composer test as a test shortcut Improve phpunit configuration to show issues Remove obsolete phpunit settings
1 parent 9b42ff4 commit c6d76ba

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
"ext-mbstring": "*"
2626
},
2727
"require-dev": {
28-
"phpunit/phpunit": "^7.5 || ^8 || ^9 || ^10 || ^11"
28+
"phpunit/phpunit": "^7.5 || ^8 || ^9 || ^10 || ^11 || ^12"
29+
},
30+
"scripts": {
31+
"test": "phpunit"
2932
}
3033
}

phpunit.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

33
<phpunit backupGlobals="false"
4-
backupStaticAttributes="false"
54
colors="false"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
95
stopOnFailure="false"
106
bootstrap="vendor/autoload.php"
7+
displayDetailsOnTestsThatTriggerDeprecations="true"
8+
displayDetailsOnTestsThatTriggerNotices="true"
9+
displayDetailsOnTestsThatTriggerWarnings="true"
10+
displayDetailsOnTestsThatTriggerErrors="true"
11+
displayDetailsOnSkippedTests="true"
1112
>
1213
<testsuites>
1314
<testsuite name="PHP Font Lib Test Suite">

0 commit comments

Comments
 (0)