Skip to content

Commit

Permalink
Replace PHPUnit 9 with PHPUnit 10
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Apr 12, 2024
1 parent 7b42c55 commit 8358e08
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 55 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
'import_constants' => true,
'import_functions' => true,
],
'new_with_braces' => true,
'new_with_parentheses' => true,
'no_blank_lines_after_phpdoc' => true,
'no_empty_phpdoc' => true,
'no_empty_comment' => true,
Expand Down
20 changes: 10 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@
"ext-fileinfo": "*",
"ext-gmp": "*",
"ext-intl": "*",
"friendsofphp/php-cs-fixer": "^v3.16.0",
"guzzlehttp/psr7": "^2.5",
"laminas/laminas-diactoros": "^3.0",
"nyholm/psr7": "^1.8",
"phpbench/phpbench": "^1.2.14",
"phpstan/phpstan": "^1.10.29",
"friendsofphp/php-cs-fixer": "^3.53.0",
"guzzlehttp/psr7": "^2.6.2",
"laminas/laminas-diactoros": "^3.3.1",
"nyholm/psr7": "^1.8.1",
"phpbench/phpbench": "^1.2.15",
"phpstan/phpstan": "^1.10.66",
"phpstan/phpstan-deprecation-rules": "^1.1.4",
"phpstan/phpstan-phpunit": "^1.3.13",
"phpstan/phpstan-strict-rules": "^1.5.1",
"phpunit/phpunit": "^9.6.10",
"phpstan/phpstan-phpunit": "^1.3.16",
"phpstan/phpstan-strict-rules": "^1.5.3",
"phpunit/phpunit": "^10.5.17",
"psr/http-factory": "^1.0.2",
"psr/http-message": "^1.1.0 || ^2.0",
"symfony/var-dumper": "^6.3.3",
"symfony/var-dumper": "^6.4.6",
"uri-templates/uritemplate-test": "dev-master"
},
"repositories": [
Expand Down
78 changes: 34 additions & 44 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,46 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<coverage>
<include>
<directory suffix=".php">uri</directory>
<directory suffix=".php">components</directory>
<directory suffix=".php">interfaces</directory>
</include>
<exclude>
<directory suffix="Bench.php">uri</directory>
<directory suffix="Test.php">uri</directory>
<directory suffix="TestCase.php">uri</directory>
<directory suffix="Bench.php">components</directory>
<directory suffix="Test.php">components</directory>
<directory suffix="Bench.php">interfaces</directory>
<directory suffix="Test.php">interfaces</directory>
</exclude>
<report>
<clover outputFile="build/clover.xml"/>
<html outputDirectory="build/coverage"/>
<xml outputDirectory="build/coverage-xml"/>
</report>
</coverage>
<testsuites>
<testsuite name="URI Test Suite">
<directory suffix="Test.php">uri</directory>
<directory suffix="Test.php">components</directory>
<directory suffix="Test.php">interfaces</directory>
</testsuite>
</testsuites>
<logging>
<junit outputFile="build/junit.xml"/>
</logging>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<coverage>
<report>
<clover outputFile="build/clover.xml"/>
<html outputDirectory="build/coverage"/>
<xml outputDirectory="build/coverage-xml"/>
</report>
</coverage>
<testsuites>
<testsuite name="URI Test Suite">
<directory suffix="Test.php">uri</directory>
<directory suffix="Test.php">components</directory>
<directory suffix="Test.php">interfaces</directory>
</testsuite>
</testsuites>
<logging>
<junit outputFile="build/junit.xml"/>
</logging>
<source>
<include>
<directory suffix=".php">uri</directory>
<directory suffix=".php">components</directory>
<directory suffix=".php">interfaces</directory>
</include>
<exclude>
<directory suffix="Bench.php">uri</directory>
<directory suffix="Test.php">uri</directory>
<directory suffix="TestCase.php">uri</directory>
<directory suffix="Bench.php">components</directory>
<directory suffix="Test.php">components</directory>
<directory suffix="Bench.php">interfaces</directory>
<directory suffix="Test.php">interfaces</directory>
</exclude>
</source>
</phpunit>

0 comments on commit 8358e08

Please sign in to comment.