Skip to content

Commit

Permalink
📦 Phpunit v11, phpstan v2, doctrine CS 12
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-demb committed Jan 3, 2025
1 parent 0a0363a commit c73361c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 21 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
"symfony/validator": "^7"
},
"require-dev": {
"phpunit/phpunit": "^9.6.5 || ^10.0.0",
"phpunit/phpunit": "^11",
"mouf/picotainer": "^1.1",
"phpstan/phpstan": "^1.8",
"phpstan/phpstan": "^2",
"php-coveralls/php-coveralls": "^2.1.0",
"symfony/translation": "^7",
"doctrine/coding-standard": "^11.1|^12.0"
"doctrine/coding-standard": "^12"
},
"scripts": {
"phpstan": "phpstan analyse --no-progress",
Expand Down
2 changes: 0 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ parameters:

excludePaths:
- vendor
- cache
- .phpstan-cache

#includes:
# - vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon
30 changes: 14 additions & 16 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
backupStaticAttributes="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
bootstrap="vendor/autoload.php"
>
<testsuites>
Expand All @@ -16,13 +11,16 @@
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>./src</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-html" target="build/coverage"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
<source>
<include>
<directory>src</directory>
</include>
</source>

<coverage>
<report>
<clover outputFile="build/logs/clover.xml"/>
<html outputDirectory="build/coverage"/>
</report>
</coverage>
</phpunit>

0 comments on commit c73361c

Please sign in to comment.