Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ jobs:
- dependencies: "php-http/guzzle7-adapter"
php-version: "8.4"
symfony-deprecations-helper: "weak"
- dependencies: "php-http/guzzle7-adapter"
php-version: "8.5"
symfony-deprecations-helper: "weak"

# Test with httplug 2.x clients
- dependencies: "php-http/guzzle7-adapter php-http/curl-client:^2.0.0 php-http/vcr-plugin:^1.0@dev php-http/socket-client:^2.0"
Expand All @@ -48,11 +51,11 @@ jobs:

# Latest commit to master
- dependencies: "php-http/guzzle7-adapter php-http/vcr-plugin:^1.0@dev"
php-version: "8.2"
php-version: "8.5"
stability: "dev"
symfony-deprecations-helper: "weak"
- dependencies: "php-http/guzzle7-adapter"
php-version: "8.2"
php-version: "8.5"
stability: "dev"
symfony-deprecations-helper: "weak"

Expand All @@ -65,9 +68,9 @@ jobs:
symfony-require: "6.4.*"
php-version: "8.2"
symfony-deprecations-helper: "weak"
- dependencies: "php-http/guzzle7-adapter symfony/http-client:^7.3"
symfony-require: "7.3.*"
php-version: "8.2"
- dependencies: "php-http/guzzle7-adapter symfony/http-client:^7.4"
symfony-require: "7.4.*"
php-version: "8.5"
symfony-deprecations-helper: "weak"

steps:
Expand All @@ -90,6 +93,7 @@ jobs:

- name: "Add dependencies and enable flex"
run: |
composer config allow-plugins.symfony/flex true
composer require --no-update ${{ matrix.dependencies }}

- name: "Install dependencies with Composer"
Expand Down
52 changes: 19 additions & 33 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,35 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.4/phpunit.xsd"
bootstrap="./vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true">
<php>
<env name="SHELL_VERBOSITY" value="-1" />
<server name="KERNEL_DIR" value="./tests/Resources/app" />
<server name="KERNEL_CLASS" value="AppKernel" />
</php>

<testsuites>
<testsuite name="HttplugBundle unit tests">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
<testsuite name="HttplugBundle functional tests">
<directory suffix="Test.php">./tests/Functional</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>./</directory>
<exclude>
<directory>./Resources</directory>
<directory>./tests</directory>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" bootstrap="./vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true">
<coverage>
<include>
<directory>./src</directory>
</include>
</coverage>
<php>
<env name="SHELL_VERBOSITY" value="-1"/>
<server name="KERNEL_DIR" value="./tests/Resources/app"/>
<server name="KERNEL_CLASS" value="AppKernel"/>
</php>
<testsuites>
<testsuite name="HttplugBundle unit tests">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
<testsuite name="HttplugBundle functional tests">
<directory suffix="Test.php">./tests/Functional</directory>
</testsuite>
</testsuites>
</phpunit>