Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/upstream updates #8

Merged
merged 102 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
8ffa836
Support for Symfony 6
nicodemuz Dec 9, 2021
783a29a
TASK: Cleanup GitHub workflows
higidi Dec 15, 2022
444c810
FIX: Allow phpstan/extension-install composer plugin
higidi Dec 15, 2022
87f2a5a
Cleanup .gitattributes with export-ignore
higidi Dec 15, 2022
70d1623
TASK: Use composer-install action for workflows
higidi Dec 15, 2022
9c34e8d
TASK: Apply codestyle fixes
higidi Dec 15, 2022
a78277f
FIX: Fix scrutinizer workflow action uploading
higidi Dec 15, 2022
a08fa1a
Merge pull request #372 from php-vcr/fix_github_workflows
higidi Dec 15, 2022
81b2917
TASK: Added php-xdebug ext to workspace docker container
higidi Dec 15, 2022
de55664
FEATURE: Allow lower versions of symfony/event-dispatcher
higidi Dec 15, 2022
7818e1f
TASK: Ignore phpstan error
higidi Dec 15, 2022
daca8e2
Merge pull request #371 from php-vcr/add_support_for_sf_event_dispatc…
higidi Dec 15, 2022
75735a6
FEATURE: Upgrade phpstan
higidi Dec 15, 2022
07e7beb
TASK: Refactor GitHub workflow
higidi Dec 15, 2022
d85a1c6
Merge pull request #375 from php-vcr/374-upgrade-phpstan
higidi Dec 15, 2022
6a3ea7e
FEATURE: Workspace docker image for php 8.1 added
higidi Dec 15, 2022
c1b28b2
FEATURE: Test against php 8.1 with GitHub workflows
higidi Dec 15, 2022
f866894
FIX: Fixed several issues with occurred with php >= 8.1
higidi Dec 15, 2022
36f0be4
TASK: Disable failing fast while running phpunit tests
higidi Dec 15, 2022
d66f016
FIX: Fix phpstan issues and invalid BlackholeTest
higidi Dec 15, 2022
483c3aa
FIX: Raise minimum version of phpunit
higidi Dec 15, 2022
107a20d
Merge pull request #376 from php-vcr/360-php-81-compatibility
higidi Dec 15, 2022
ed9c2d0
FEATURE: Restructure GitHub Workflow
higidi Dec 15, 2022
e5da4cb
FEATURE: Added editorconfig checker
higidi Dec 15, 2022
c8a7ec1
FIX: Fix editorconfig violations
higidi Dec 15, 2022
d0cbc11
TASK: Added .editorconfig to export-ignore via .gitattributes
higidi Dec 15, 2022
4ada323
FEATURE: Install editorconfig-checker wrapper for php
higidi Dec 19, 2022
75f3e56
TASK: Fix export-ignore for phpstan in .gitattributes
higidi Dec 19, 2022
bf37eb2
TASK: Do not exclude defaults for editorconfig checker
higidi Dec 19, 2022
54cf16c
Merge pull request #378 from php-vcr/refactor_dev_ci
higidi Dec 19, 2022
7590bbc
Rework https://github.com/php-vcr/php-vcr/pull/161. Manage request in…
bwood Feb 13, 2019
9f971f6
$index should not be a required parameter on record(). Avoid unecessa…
bwood Feb 13, 2019
3aa54e8
Ensure that the cassette indexes are reset when the cassette is eject…
bwood Feb 13, 2019
9037b98
Use equals not identical operator when comparing the request index to…
bwood Feb 14, 2019
d5adfb4
Spport legacy cassettes. Create a recording index of 0 if no index ke…
bwood Feb 14, 2019
edb27bd
Add comment punctuation.
bwood Feb 14, 2019
074fb85
Add testPlaybackLegacyCassette() to ensure that legacy cassettes with…
bwood Feb 14, 2019
1011e40
Add tests ensuring that both legacy (non-indexed) cassettes and index…
bwood Feb 15, 2019
5cdd0a0
Modify testInsertCassetteEjectExisting() to ensure that resetIndex() …
bwood Feb 19, 2019
37bafc7
Remove redundant testPlaybackLegacyCassette().
bwood Feb 19, 2019
ad35687
Fix indents.
bwood Feb 19, 2019
ce1471b
FEATURE: Added testcase for mixed cassettes
higidi Dec 19, 2022
a95298b
FIX: Fixed remaining phpstan errors
higidi Dec 19, 2022
457326c
FIX: Indentions
higidi Dec 19, 2022
9672154
FIX: Videorecorder always raised index for identical requests, Casset…
higidi Dec 19, 2022
2ebf001
Revert "FEATURE: Added testcase for mixed cassettes"
higidi Dec 19, 2022
63de5ce
FIX: Fixed remaining phpstan errors
higidi Dec 19, 2022
1b53492
FIX: README.md badge
higidi Dec 19, 2022
3e8b2b9
Merge pull request #379 from php-vcr/record_identical_requests
higidi Dec 19, 2022
1d8349f
Add CURLINFO_APPCONNECT_TIME to CurlHelper
oranges13 Dec 20, 2022
6585459
Merge branch 'master' into patch-2
nicodemuz Dec 25, 2022
a8eda85
Merge pull request #361 from nicodemuz/patch-2
higidi Dec 25, 2022
9bfb45b
Fix CurlHookTest.php
oranges13 Dec 27, 2022
1917d66
FIX: Read the whole stream and perform code transformations
higidi Dec 27, 2022
c1f3c48
FIX: Codestyle
higidi Dec 27, 2022
9871fec
FIX: Codestyle
higidi Dec 27, 2022
bddc1fe
Merge pull request #382 from php-vcr/268-abstract-code-transform-spli…
higidi Dec 27, 2022
76bcd98
Merge pull request #381 from oranges13/add-CURLINFO_APPCONNECT_TIME-t…
higidi Feb 20, 2023
6d72376
TASK: Update README.md
higidi Feb 20, 2023
3971d02
TASK: Drop support for php 8.2
higidi Feb 20, 2023
f7db27d
Merge pull request #386 from php-vcr/update_readme
higidi Feb 20, 2023
5c9417b
Merge pull request #387 from php-vcr/drop_support_for_php82
higidi Feb 20, 2023
79a1d86
TASK: Apply codestyle
higidi Sep 3, 2023
6e1b61c
FEATURE: Fix/review phpstan errors
higidi Sep 4, 2023
e7f32c4
Merge pull request #393 from php-vcr/392-apply-changed-codestyle-revi…
higidi Sep 4, 2023
3bb6f71
FEATURE: Custom workspace docker file for php 8.2 added
higidi Dec 15, 2022
631ee45
FEATURE: Added php 8.2 to GitHub workflow
higidi Dec 15, 2022
10293cc
TASK: Add support for php 8.2
higidi Feb 20, 2023
c9f681b
TASK: Added support for php greater than 8.2.9
higidi Aug 31, 2023
376dd9c
Merge pull request #377 from php-vcr/php_82
higidi Sep 4, 2023
7bc77ca
FIX: Initialized typed property
higidi Sep 4, 2023
7debb44
Merge pull request #396 from php-vcr/395-error-typed-property-vcrresp…
higidi Sep 4, 2023
792c788
Add SOAP extension requirement for running tests
peter279k Sep 5, 2023
94289a6
Merge pull request #397 from peter279k/add_soap_required
higidi Sep 12, 2023
fe4ecde
(tech) add PHP 8.3 support
ecourtial Dec 1, 2023
dd3a797
Merge pull request #399 from ecourtial/tech-add-php-8-3-support
higidi Feb 23, 2024
dec0d0c
FIX: Fixed nullable types
higidi Feb 23, 2024
00d9e45
TASK: Fix phpstan error (by generating new baseline)
higidi Feb 23, 2024
eb21dc6
Merge pull request #407 from php-vcr/406-fix-pipeline-phpstan-phpcsfixer
higidi Feb 23, 2024
99c85db
FEATURE: Added php 8.3 workspace docker image
higidi Feb 23, 2024
2a6220d
Merge pull request #408 from php-vcr/405-adding-php-83-development-wo…
higidi Feb 23, 2024
0d72f71
Add support Symfony 7
yethee Feb 24, 2024
045d02c
Merge pull request #409 from yethee/symfony7
higidi Feb 25, 2024
733ec24
Remove trailing semicolon in Content-Type header
alexzabolotny Feb 28, 2024
fbeb9d4
Adjust SOAP v1.1 header expectation in test
alexzabolotny Mar 8, 2024
76e0c5f
Fix PHPUnit deprecations
lstrojny Apr 2, 2024
ce9eea3
Fix set_stream_options arguments
lstrojny Apr 2, 2024
9374f45
Merge pull request #410 from alexzabolotny/patch-1
higidi Oct 29, 2024
dd25dd5
Merge pull request #412 from lstrojny/fix-stream-handler-set-option
higidi Oct 29, 2024
4adfe76
TASK: Apply code style fixes
higidi Oct 29, 2024
c9ffc2e
FIX: Added new baseline
higidi Oct 29, 2024
f40bf5b
FIX: Removed phpstan ignore (there is no error to ignore)
higidi Oct 29, 2024
128486f
FIX: Gnerated phpstan baseline
higidi Oct 29, 2024
ca99693
Merge pull request #414 from php-vcr/fix/ci
higidi Oct 29, 2024
8d8d57b
add PHP 8.4 support
dmnlk Nov 22, 2024
16d202b
add support
dmnlk Dec 10, 2024
c0aeeba
Merge pull request #416 from dmnlk/feature/php84
higidi Dec 10, 2024
df941c9
Merge branch 'master-upstream' into chore/upstream-updates
specialtactics Jan 6, 2025
e70e5b7
fix cs
specialtactics Jan 6, 2025
2d007f8
skip soap tests due to problem with them
specialtactics Jan 6, 2025
1d0e7d7
phpstan, cs
specialtactics Jan 6, 2025
99ba028
remove scruitinizer reports
specialtactics Jan 6, 2025
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
12 changes: 12 additions & 0 deletions .ecrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"Verbose": true,
"IgnoreDefaults": false,
"Exclude": [
".phpunit.result.cache",
".php-cs-fixer.cache",
".idea",
".git",
"vendor/",
"tests/fixtures"
]
}
9 changes: 6 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
indent_size = 2
trim_trailing_whitespace = true

[*.php]
indent_size = 4

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml,neon}]
indent_size = 2
[*.neon]
indent_style = tab
19 changes: 12 additions & 7 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
/docs export-ignore
/tests export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/phpunit.xml export-ignore
/phpunit.xml.dist export-ignore
/docs export-ignore
/tests export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.php-cs-fixer.dist.php export-ignore
/.editorconfig export-ignore
/.ecrc export-ignore
/docker-compose.yaml export-ignore
/phpstan.neon export-ignore
/phpstan-baseline.neon export-ignore
/phpunit.xml.dist export-ignore
/resources export-ignore
142 changes: 142 additions & 0 deletions .github/workflows/continuous integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
name: "Continuous Integration"

on:
push:
pull_request:

jobs:
phpstan:
name: "PHPStan"
runs-on: "ubuntu-latest"

steps:
- name: "Checkout code"
uses: "actions/checkout@v2"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.0"
extensions: "curl, soap"
tools: "composer:v2"

- name: "Enforce using stable dependencies"
run: "composer config minimum-stability stable"

- name: "Check Composer configuration"
run: "composer validate --strict"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "highest"
composer-options: "--prefer-dist -o"

- name: "Run PHPStan"
run: "composer run-script phpstan"

editorconfig-checker:
name: EditorConfig Checker
runs-on: "ubuntu-latest"

steps:
- name: "Checkout code"
uses: "actions/checkout@v2"

- name: "Install EditorConfig Checker"
uses: "editorconfig-checker/action-editorconfig-checker@main"

- name: "Run EditorConfig Checker"
run: "editorconfig-checker"

codestyle:
name: "PHP-CS-Fixer"
runs-on: "ubuntu-latest"

steps:
- name: "Checkout code"
uses: "actions/checkout@v2"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.0"
extensions: "curl, soap"
tools: "composer:v2"

- name: "Enforce using stable dependencies"
run: "composer config minimum-stability stable"

- name: "Check Composer configuration"
run: "composer validate --strict"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "highest"
composer-options: "--prefer-dist -o"

- name: "Run PHP-CS-Fixer"
run: "composer run-script cs"

phpunit:
name: "PHPUnit Test"
runs-on: "ubuntu-latest"

strategy:
fail-fast: false
matrix:
php:
- "8.0"
- "8.1"
- "8.2"
- "8.3"
- "8.4"
dependencies:
- "lowest"
- "highest"
stability:
- "stable"

steps:
- name: "Checkout code"
uses: "actions/checkout@v2"
with:
fetch-depth: 2

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php }}"
extensions: "curl, soap"
tools: "composer:v2"
coverage: "pcov"

- name: "Enforce using stable dependencies"
run: "composer config minimum-stability stable"
if: "${{ matrix.stability == 'stable' }}"

- name: "Check Composer configuration"
run: "composer validate --strict"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist -o"

- name: "Run PHPUnit Test"
run: "vendor/bin/phpunit --coverage-clover=coverage.clover --log-junit=phpunit.xml"

# - name: "Publish Test Report"
# uses: "mikepenz/action-junit-report@v2"
# if: "always()" # always run even if the previous step fails
# with:
# report_paths: "phpunit.xml"
# check_name: "PHPUnit Test Report (${{ matrix.php }}, ${{ matrix.dependencies }}, ${{ matrix.stability }})"
#
# - name: "Publish Scrutinizer Coverage"
# uses: "sudo-bot/action-scrutinizer@latest"
# if: "always()" # always run even if the previous step fails
# with:
# cli-args: "--format=php-clover coverage.clover"
91 changes: 0 additions & 91 deletions .github/workflows/tests.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![PHP-VCR](https://user-images.githubusercontent.com/133832/27151811-0d95c6c4-514c-11e7-834e-eff1eec2ea16.png)

[![Build Status](https://github.com/php-vcr/php-vcr/actions/workflows/tests.yml/badge.svg)](https://github.com/php-vcr/php-vcr/actions/workflows/tests.yml)
[![Continuous Integration](https://github.com/php-vcr/php-vcr/actions/workflows/continuous%20integration.yml/badge.svg?branch=master)](https://github.com/php-vcr/php-vcr/actions/workflows/continuous%20integration.yml)
[![Code Coverage](https://scrutinizer-ci.com/g/php-vcr/php-vcr/badges/coverage.png?s=15cf1644c8cf37a868e03cfba809a5e24c78f285)](https://scrutinizer-ci.com/g/php-vcr/php-vcr/)
[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/php-vcr/php-vcr/badges/quality-score.png?s=4f638dbca5eb51fb9c87a1dd45c5df94687d85bd)](https://scrutinizer-ci.com/g/php-vcr/php-vcr/)

Expand All @@ -14,7 +14,7 @@ Disclaimer: Doing this in PHP is not as easy as in programming languages which s

* Automatically records and replays your HTTP(s) interactions with minimal setup/configuration code.
* Supports common http functions and extensions
* everything using [streamWrapper](http://php.net/manual/en/class.streamwrapper.php): fopen(), fread(), file_get_contents(), ... without any modification (except `$http_response_header` see #96)
* everything using [streamWrapper](http://php.net/manual/en/class.streamwrapper.php): fopen(), fread(), file_get_contents(), ... without any modification (except `$http_response_header` see [#96](https://github.com/php-vcr/php-vcr/issues/96))
* [SoapClient](http://www.php.net/manual/en/soapclient.soapclient.php) by adding `\VCR\VCR::turnOn();` in your `tests/bootstrap.php`
* curl(), by adding `\VCR\VCR::turnOn();` in your `tests/bootstrap.php`
* The same request can receive different responses in different tests -- just use different cassettes.
Expand Down Expand Up @@ -121,7 +121,7 @@ composer test
[Old changelog entries](docs/old-changelog.md)

## Copyright
Copyright (c) 2013-2016 Adrian Philipp. Released under the terms of the MIT license. See LICENSE for details.
Copyright (c) 2013-2023 Adrian Philipp. Released under the terms of the MIT license. See LICENSE for details.
[Contributors](https://github.com/php-vcr/php-vcr/graphs/contributors)

<!--
Expand Down
30 changes: 17 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"license": "MIT",
"scripts": {
"test": "./vendor/bin/phpunit",
"lint": "./vendor/bin/php-cs-fixer fix --verbose --diff --dry-run",
"fix": "./vendor/bin/php-cs-fixer fix --verbose --diff",
"phpstan": "php -d memory_limit=-1 vendor/bin/phpstan analyse -c phpstan.neon --no-progress -vvv"
"cs": "./vendor/bin/php-cs-fixer fix --verbose --diff --dry-run",
"cs-fix": "./vendor/bin/php-cs-fixer fix --verbose --diff",
"phpstan": "php -d memory_limit=-1 vendor/bin/phpstan analyse -c phpstan.neon --no-progress -vvv",
"ec": "./vendor/bin/ec"
},
"authors": [
{
Expand All @@ -18,22 +19,25 @@
}
],
"require": {
"php": "^8.0",
"php": "^8,<8.2|>=8.2.9,<8.5",
"ext-curl": "*",
"beberlei/assert": "^3.2.5",
"symfony/yaml": "^3.0|^4.0|^5.0|^6.0",
"symfony/event-dispatcher": "^5.0|^6.0"
"symfony/yaml": "^3|^4|^5|^6|^7",
"symfony/event-dispatcher": "^4|^5|^6|^7",
"symfony/event-dispatcher-contracts": "^1|^2|^3"
},
"require-dev": {
"guzzlehttp/guzzle": "^7.0",
"phpunit/phpunit": "^9.5.0",
"ext-soap": "*",
"guzzlehttp/guzzle": "^7",
"phpunit/phpunit": "^9.5.10",
"mikey179/vfsstream": "^1.6.10",
"phpstan/phpstan": "^0.12.92",
"phpstan/phpstan-beberlei-assert": "^0.12.0",
"thecodingmachine/phpstan-strict-rules": "^0.12",
"phpstan/phpstan": "^1",
"phpstan/phpstan-beberlei-assert": "^1",
"thecodingmachine/phpstan-strict-rules": "^1",
"friendsofphp/php-cs-fixer": "^3.0",
"phpstan/phpstan-phpunit": "^0.12.22",
"phpstan/extension-installer": "^1.1"
"phpstan/phpstan-phpunit": "^1",
"phpstan/extension-installer": "^1.1",
"editorconfig-checker/editorconfig-checker": "^10.3"
},
"autoload": {
"psr-4": {
Expand Down
Loading
Loading