Skip to content

Commit

Permalink
Merge pull request #23 from tienvx/update-php-symfony-phpunit
Browse files Browse the repository at this point in the history
deps: Update php, symfony, phpunit
  • Loading branch information
tienvx authored Mar 27, 2024
2 parents 49d25b6 + e0abd32 commit 82fdaa9
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2']
php-versions: ['8.1', '8.2', '8.3']
dependency-versions: ['lowest', 'highest']
name: PHP ${{ matrix.php-versions }} with ${{ matrix.dependency-versions }} versions of Composer dependencies
steps:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
/.vscode/
/vendor/
/composer.lock
/.phpunit.result.cache
/.phpunit.cache
/clover.xml
/coveralls-upload.json
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"description": "Pact Provider Bundle",
"type": "symfony-bundle",
"require": {
"php": "^8.0",
"symfony/http-kernel": "^4.4|^5.4|^6.0",
"symfony/dependency-injection": "^4.4|^5.4|^6.0",
"symfony/config": "^4.4|^5.4|^6.0"
"php": "^8.1",
"symfony/http-kernel": "^5.4|^6.0|7.0",
"symfony/dependency-injection": "^5.4|^6.0|7.0",
"symfony/config": "^5.4|^6.0|7.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5"
"phpunit/phpunit": "^10.0"
},
"license": "MIT",
"autoload": {
Expand Down
44 changes: 17 additions & 27 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,30 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="vendor/autoload.php"
convertDeprecationsToExceptions="false"
>
<testsuites>
<testsuite name="unit">
<directory>tests</directory>
</testsuite>
</testsuites>

<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>

<exclude>
<directory suffix=".php">src/Resources</directory>
</exclude>

<report>
<clover outputFile="clover.xml"/>
</report>
</coverage>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" cacheDirectory=".phpunit.cache">
<testsuites>
<testsuite name="unit">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<directory suffix=".php">src</directory>
</include>
<exclude>
<directory suffix=".php">src/Resources</directory>
</exclude>
<report>
<clover outputFile="clover.xml"/>
</report>
</coverage>
</phpunit>

0 comments on commit 82fdaa9

Please sign in to comment.