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

Php vcr master #3

Open
wants to merge 274 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
274 commits
Select commit Hold shift + click to select a range
c63ea35
Upgrading to PHPStan level 4.
moufmouf Oct 29, 2018
e9eff96
Adding casts for parameters (int to bool...)
moufmouf Oct 29, 2018
4d22f65
Merge branch 'http_error_issue' into modernize_phpversion
moufmouf Oct 29, 2018
1f788e8
Adding additional check to be sure the cassette was successfully opened.
moufmouf Oct 29, 2018
cede95e
Asserting that curl_init did succeed
moufmouf Oct 29, 2018
8e6530a
Reaching PHPStan level 6
moufmouf Oct 29, 2018
bd2a5ed
Adding beberlei assertion PHPStan plugin (needed to improve the impac…
moufmouf Oct 29, 2018
5bf26c0
Removing invalid XML from PHPUnit file
moufmouf Oct 29, 2018
d3dd0bf
Allowing beberlei/assert to go up to v3.
moufmouf Oct 29, 2018
87bed25
Fixing PHPUnit test
moufmouf Oct 29, 2018
707ddd6
Reaching PHPStan level 7 \o/
moufmouf Oct 29, 2018
55b9cf0
Merge pull request #3 from moufmouf/modernize_phpversion
moufmouf Oct 30, 2018
33458d5
Adding PHP 7.1+ types
moufmouf Oct 30, 2018
c643703
Fixed AbstractCodeTransform registration.
moufmouf Oct 31, 2018
7336c77
Merge pull request #5 from moufmouf/strict_types
moufmouf Oct 31, 2018
b2493ee
Merging opcache fix. See #255
moufmouf Nov 9, 2018
e5ac2e6
Added SoapOperation request matcher + unit tests
Nov 9, 2018
57339ef
Fixing type hinting on createStorage
moufmouf Nov 13, 2018
6b2944e
Using "finally" statement now that PHP-VCR has a PHP 7+ requirement
moufmouf Nov 13, 2018
cd48ec8
Update tests/VCR/RequestMatcherTest.php
moufmouf Nov 13, 2018
92ea10d
Merge pull request #6 from ValdoTR/soap-operation
moufmouf Nov 13, 2018
0d5fe38
Adding PHP7.4snapshot to Travis (with allowed failure)
moufmouf Aug 6, 2019
6de021a
Applying CS fix with newest version of PHP-CS-Fixer
moufmouf Aug 6, 2019
51a27ec
Fixing PHPStan new issues following dependencies upgrade
moufmouf Aug 6, 2019
7137230
Fixing event listener breaking change in Symfony 4.3
moufmouf Aug 6, 2019
ee01b30
Storage: Yaml: prevent PHP 7.4 deprecation notice
kornrunner Aug 6, 2019
0199448
Cassette: drop unused use statement
kornrunner Aug 6, 2019
f3686b1
Request: drop unused use statement
kornrunner Aug 6, 2019
6963db5
Response: drop unused use statement
kornrunner Aug 6, 2019
09ef936
Storage: AbstractStorage: drop unused use statement
kornrunner Aug 6, 2019
9e88cf9
Storage: Json: drop unused use statement
kornrunner Aug 6, 2019
5360a98
LibraryHooks: StreamWrapperHook: drop unused use statements
kornrunner Aug 6, 2019
e73c988
U-Tests: LibraryHooks: CurlHookTest: pass second param to curl_multi_…
kornrunner Aug 6, 2019
22f5a5c
U-Tests: LibraryHooks: CurlHookTest: make sure we pass Closure
kornrunner Aug 6, 2019
5bc3584
U-Tests: LibraryHooks: SoapHookTest: make sure we pass Closure
kornrunner Aug 6, 2019
0d888c3
Merge pull request #7 from kornrunner/new-version
moufmouf Aug 6, 2019
bb4b039
Fixing Beberlei/assert signature change
Nov 22, 2019
afc4700
Updating composer.lock
Nov 22, 2019
8becc4e
Update src/VCR/Util/Assertion.php
AymanBenmada Nov 27, 2019
cf74dba
Fixing issue with Guzzle 3 and symfony event dispatcher
moufmouf Nov 27, 2019
ae85854
Merge pull request #9 from moufmouf/fix_beberlei_assertion_signature
moufmouf Nov 27, 2019
b224adb
Fixed php-cs in CI
JeroenVanOort May 21, 2020
26bb6ac
Merge pull request #305 from php-vcr/get-ci-back-up
JeroenVanOort May 21, 2020
5f46a6e
Fix typo in README and remove warning
MrRio May 21, 2020
c7a65d9
Fixed vfsstream reference
JeroenVanOort May 21, 2020
cc418e7
Merge pull request #307 from php-vcr/fixing-composer.json-error
JeroenVanOort May 21, 2020
cff09ad
Adding PHPStan to CI build
moufmouf Oct 22, 2018
15d6b89
Fixing PHPStan level 0 issues
moufmouf Oct 23, 2018
008e619
Updated phpstan to ^0.12
JeroenVanOort May 22, 2020
b2e4cc6
Merge pull request #257 from moufmouf/phpstan
JeroenVanOort May 22, 2020
a473e77
Fix the parse error on PHP 7.4
morozov Jan 6, 2020
faa3341
Merge pull request #293 from morozov/issues/289
JeroenVanOort May 22, 2020
944334e
Test php 7.3 and 7.4
janvernieuwe Dec 2, 2019
775ccff
Use 7.4 snapshot for now
janvernieuwe Dec 2, 2019
c919572
Don't force precise
janvernieuwe Dec 2, 2019
b2611ed
Don't force precise
janvernieuwe Dec 2, 2019
2d3b3f0
Use 7.4, not 7.4snapshot
JeroenVanOort May 22, 2020
198dfb2
Fixed array offset error
JeroenVanOort May 22, 2020
274227e
Temporarily ignore deprecation messages for PHP 7.4
JeroenVanOort Jun 3, 2020
267674d
Merge pull request #290 from janvernieuwe/travis-update
JeroenVanOort Jun 3, 2020
ec1df13
Merge branch 'master' of github.com:php-vcr/php-vcr into new-version
JeroenVanOort Jun 3, 2020
24b7fc3
Fixed PHPStan errors
JeroenVanOort Jun 11, 2020
1e9b539
Merge pull request #259 from moufmouf/new-version
JeroenVanOort Jun 11, 2020
f2efbb8
Updated symfony/event-dispatcher to Symfony 5
pauladams8 Jun 13, 2020
3f1b652
Fixed broken references
pauladams8 Jun 13, 2020
ec34219
Removed header folding
pauladams8 Jun 15, 2020
fc077ac
Refactor header parsing logic
pauladams8 Jun 15, 2020
35b7293
Added null check to request header accessor
pauladams8 Jun 15, 2020
4fa43b8
Header formatting
pauladams8 Jun 15, 2020
437ec4a
Header formatting
pauladams8 Jun 16, 2020
6572f29
Refactor header parsing logic
pauladams8 Jun 16, 2020
3d88f89
Symfony LTS backwards compatibility
pauladams8 Jun 22, 2020
414badc
Dispatcher style fix
pauladams8 Jun 22, 2020
31de7ba
Fixed broken references
pauladams8 Jun 22, 2020
25f3b19
Style fix
pauladams8 Jun 22, 2020
9bc28a6
Merge pull request #313 from thecoderszone/set-cookie
JeroenVanOort Jun 22, 2020
5085060
Merge branch 'master' of github.com:php-vcr/php-vcr into 1.5
JeroenVanOort Jun 24, 2020
6d23bed
Merge branch '1.5' into symfony-5
pauladams8 Jun 24, 2020
5e7cea8
Bump package versions
pauladams8 Jun 24, 2020
cd1cb1d
Merge pull request #311 from thecoderszone/symfony-5
JeroenVanOort Jun 25, 2020
4a16e1e
Fixed the uncareful merge of PR311
JeroenVanOort Jun 25, 2020
af4ab5b
Merge pull request #315 from php-vcr/1.5-fix-uncareful-merge
JeroenVanOort Jun 25, 2020
99f88a6
Configure php-cs-fixer as dev dependency
JeroenVanOort Jun 11, 2020
bbf48f3
Updated php-cs-fixer config
JeroenVanOort Jun 20, 2020
a4809a2
Changes by php-cs-fixer
JeroenVanOort Jul 1, 2020
70a2b13
Merge pull request #314 from php-vcr/1.5-configure-php-cs-fixer
JeroenVanOort Jul 1, 2020
a8a01b2
Implemented stream_stat
JeroenVanOort Jul 1, 2020
fc5c75a
Merge pull request #317 from php-vcr/1.5-fix-stat-error
JeroenVanOort Jul 1, 2020
ca06c3e
Allow using symfony/yaml ^5.0
JeroenVanOort Jul 4, 2020
f6b5fb4
Merge pull request #319 from php-vcr/1.5-allow-symfony-yaml-5
JeroenVanOort Jul 4, 2020
39ac1dd
Merge branch 'master' of github.com:php-vcr/php-vcr into 1.5
JeroenVanOort Jul 4, 2020
9297ec7
Add Failing test
janvernieuwe Oct 25, 2019
9375ef0
Add word boundary to regex
janvernieuwe Oct 25, 2019
9a8fc21
Merge pull request #283 from janvernieuwe/issue-282
JeroenVanOort Jul 4, 2020
746c3bd
Merge branch 'master' of github.com:php-vcr/php-vcr into 1.5
JeroenVanOort Jul 4, 2020
2c0e9b3
Updated vfsstream
JeroenVanOort Jul 27, 2020
dea11c5
Merge pull request #323 from php-vcr/1.5-updating-vfsstream
JeroenVanOort Jul 27, 2020
6ffdd9e
Updated readme and composer.json
JeroenVanOort Jul 28, 2020
8e92a4b
Merge pull request #324 from php-vcr/1.5-updating-readme-and-composer…
JeroenVanOort Jul 28, 2020
82eb7d5
Removed Guzzle 4 test as Guzzle 4 is not compatible with PHP >= 7.1
JeroenVanOort Jul 28, 2020
58b2e9f
Merge pull request #325 from php-vcr/1.5-removing-unused-guzzle-4-test
JeroenVanOort Jul 28, 2020
1b152a6
Merge pull request #326 from php-vcr/1.5
JeroenVanOort Jul 28, 2020
c8e9c26
Merge origin
Sep 11, 2020
6cc06e2
fix: phpstan ignore error failure on PHP >= 7.2
pvgnd Nov 21, 2020
4b8f627
fix: ensure stream_wrapper_restore does not throw
pvgnd Nov 21, 2020
c027a6e
Merge pull request #333 from pvgnd/fix-phpstan
JeroenVanOort Nov 22, 2020
9235412
chore: Ignore composer.lock
pvgnd Nov 21, 2020
d280fef
Merge pull request #331 from pvgnd/ignore-composer-lock
JeroenVanOort Nov 22, 2020
3f13b2b
call_user_func doesn't work in this context with private or protected…
alnorth Nov 19, 2018
c482b6e
Merge pull request #260 from alnorth/fix-calling-of-private-curl-func…
JeroenVanOort Nov 22, 2020
1ad3413
Support for ssl requests in some edge cases like paypal php sdk
specialtactics Nov 23, 2020
b830966
CS rule
specialtactics Nov 23, 2020
1f5e709
Update phpstan config
specialtactics Nov 23, 2020
ddabff2
Merge pull request #334 from specialtactics/feature/ssl-paypal
JeroenVanOort Nov 23, 2020
e35b7af
Adding docker-compose environment
JeroenVanOort Mar 8, 2021
7d0de08
Ran composer fix
JeroenVanOort Mar 8, 2021
8f2569b
Upgraded PHPUnit from 7 to 8
JeroenVanOort Mar 8, 2021
620269f
Updated php-cs-fixer config
JeroenVanOort Mar 8, 2021
824b90e
Merge pull request #340 from php-vcr/2021-update
JeroenVanOort Mar 8, 2021
d72761e
Added .editorconfig
JeroenVanOort Mar 14, 2021
3eeecb0
Level 0
JeroenVanOort Mar 14, 2021
a02bb57
Level 1
JeroenVanOort Mar 14, 2021
f26c8f4
Level 2
JeroenVanOort Mar 14, 2021
b52942f
Level 3
JeroenVanOort Mar 14, 2021
1af9cde
Level 5
JeroenVanOort Mar 14, 2021
1108d2d
Level 6
JeroenVanOort Mar 14, 2021
413efe6
Level 7
JeroenVanOort Mar 14, 2021
469ac33
Merge pull request #342 from php-vcr/phpstan-for-tests
JeroenVanOort Mar 14, 2021
8adc4f5
add support for curl_multi_getcontent
Khartir Feb 19, 2021
989fdca
Merge pull request #339 from Khartir/support-multi-getcontent
JeroenVanOort Mar 20, 2021
d60490c
Dropped support for PHP 7.2
JeroenVanOort Aug 22, 2021
71a2ede
Merge pull request #356 from php-vcr/drop-php-7.2
JeroenVanOort Aug 22, 2021
2267d78
Converted travis to github actions
JeroenVanOort Aug 22, 2021
e8154b5
Merge pull request #345 from php-vcr/github-actions
JeroenVanOort Aug 22, 2021
f036ea9
Adding support for PHP8, dropping support for PHP7
JeroenVanOort Oct 4, 2021
77911ca
Workaround for broken ocular
JeroenVanOort Oct 4, 2021
d65e2aa
Major update and cleanup
JeroenVanOort Oct 9, 2021
e22c1d6
Reorganised tests
JeroenVanOort Oct 9, 2021
180d5b6
Merge pull request #357 from php-vcr/php8
JeroenVanOort Oct 9, 2021
8ffa836
Support for Symfony 6
nicodemuz Dec 9, 2021
ba9ca58
Merge branch 'master' into merge-origin
Jan 3, 2022
c064a4e
Works
Jan 3, 2022
39a8083
Works
Jan 3, 2022
3ed4a46
Works
Jan 3, 2022
435e3f9
Works
Jan 3, 2022
e85bea1
Works
Jan 3, 2022
96f452c
Make SoapClient compatible again
Jan 8, 2022
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
53dfea3
Merge
Mar 1, 2023
52a188a
Manually apply https://github.com/php-vcr/php-vcr/pull/364
Aug 15, 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
c863b6d
Merge branch 'php-vcr:master' into php-vcr-master
Tjeerd Sep 10, 2023
94289a6
Merge pull request #397 from peter279k/add_soap_required
higidi Sep 12, 2023
48b5d92
Fixes
Tjeerd Sep 20, 2023
9b803cf
Type fix
Nov 5, 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
617b688
Support SF 7
May 11, 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
eeb9881
Merge upstream
Feb 22, 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"
]
}
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

[*.php]
indent_size = 4

[*.md]
trim_trailing_whitespace = false

[*.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"
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
*.idea*
*.sublime-*
**/vendor/*
coverage/*
notes.md
tests/fixtures/cassette*
/.php_cs.cache
/.php_cs
composer.lock
.phpunit.result.cache
.php-cs-fixer.cache
18 changes: 18 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

return (new PhpCsFixer\Config())
->setRules([
'@PSR12' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHP80Migration' => true,
'@PHP80Migration:risky' => true,
'@PHPUnit84Migration:risky' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->exclude('vendor')
->exclude('docs')
->in(__DIR__)
)
->setRiskyAllowed(true);
20 changes: 0 additions & 20 deletions .php_cs.dist

This file was deleted.

64 changes: 0 additions & 64 deletions .travis.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.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
![PHP-VCR](https://user-images.githubusercontent.com/133832/27151811-0d95c6c4-514c-11e7-834e-eff1eec2ea16.png)

[![Build Status](https://travis-ci.org/php-vcr/php-vcr.svg?branch=master)](https://travis-ci.org/php-vcr/php-vcr)
[![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/)

This is a port of the [VCR](http://github.com/vcr/vcr) Ruby library to PHP.

Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests. A bit of documentation can be found on the [php-vcr website](http://php-vcr.github.io).

Disclaimer: Doing this in PHP is not as easy as in programming languages which support monkey patching (I'm looking at you, Ruby) – this project is not yet fully tested, so please use at your own risk!
Disclaimer: Doing this in PHP is not as easy as in programming languages which support monkey patching (I'm looking at you, Ruby)

## Features

* Automatically records and replays your HTTP(s) interactions with minimal setup/configuration code.
* Supports common http functions and extensions
* everyting 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 All @@ -30,7 +30,7 @@ Disclaimer: Doing this in PHP is not as easy as in programming languages which s
Using static method calls:

``` php
class VCRTest extends \PHPUnit_Framework_TestCase
class VCRTest extends TestCase
{
public function testShouldInterceptStreamWrapper()
{
Expand Down Expand Up @@ -68,7 +68,7 @@ class VCRTest extends \PHPUnit_Framework_TestCase
You can use annotations in PHPUnit by using [phpunit-testlistener-vcr](https://github.com/php-vcr/phpunit-testlistener-vcr):

``` php
class VCRTest extends \PHPUnit_Framework_TestCase
class VCRTest extends TestCase
{
/**
* @vcr unittest_annotation_test
Expand Down Expand Up @@ -97,9 +97,9 @@ $ composer require --dev php-vcr/php-vcr

PHP-VCR depends on:

* PHP 5.3+
* PHP 8
* Curl extension
* HTTP library [Guzzle](http://guzzlephp.org)
* [symfony/event-dispatcher](https://github.com/symfony/event-dispatcher)
* [symfony/yaml](https://github.com/symfony/yaml)
* [beberlei/assert](https://github.com/beberlei/assert)

Expand All @@ -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
Loading
Loading