Skip to content

Commit

Permalink
Fix tests for PHP 8.1
Browse files Browse the repository at this point in the history
Cleanup composer dependencies
  • Loading branch information
tomas-novotny committed Feb 21, 2025
1 parent 78b96dc commit 2d02e40
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
17 changes: 10 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,19 @@
],
"require": {
"php": "^8.1",
"evenement/evenement": "^3.0",
"react/async": "^4.2",
"react/event-loop": "^1.5",
"react/promise": "^3.1",
"react/stream": "^1.3",
"react/async": "^4.2",
"react/socket": "^1.15",
"react/promise-timer": "^1.10",
"evenement/evenement": "^3.0",
"react/promise-stream": "^1.7"
"react/socket": "^1.15"
},
"require-dev": {
"ext-pcntl": "*",
"phpunit/phpunit": "^9.6 || ^10.5",
"phpstan/phpstan": "^2.1",
"phpunit/phpunit": "^9.6",
"react/child-process": "^0.6.5",
"react/promise-stream": "^1.7",
"react/promise-timer": "^1.11",
"wyrihaximus/react-phpunit-run-tests-in-fiber": "^1.0 || ^2.0"
},
"autoload": {
Expand All @@ -55,5 +54,9 @@
"psr-4": {
"Bunny\\Test\\": "test/"
}
},
"config": {
"optimize-autoloader": true,
"sort-packages": true
}
}
12 changes: 6 additions & 6 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" cacheDirectory=".phpunit.cache">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Tests">
<directory suffix="Test.php">test/</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">src</directory>
</include>
</source>
<php>
<env name="SSL_TEST" value="no"/>
<env name="TEST_RABBITMQ_CONNECTION_URI" value="amqp://guest:guest@localhost:5672/"/>
Expand Down

0 comments on commit 2d02e40

Please sign in to comment.