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

Add PHP >= 8 support + updated tests and workflow. #1014

Open
wants to merge 89 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
6bc3958
Create test
josh-gaby May 12, 2023
b7aa6a5
Add missing properties to IoConnection.php
josh-gaby May 12, 2023
78c0e0e
Update to work with PHP 8.2
josh-gaby May 13, 2023
8e6acea
Update tests to run on version upto 8.2
josh-gaby May 13, 2023
84b3fe5
Merge pull request #1 from josh-gaby/php82
josh-gaby May 13, 2023
5c39aec
Allow manual workflow run
josh-gaby May 13, 2023
5961041
Merge pull request #2 from josh-gaby/php82
josh-gaby May 13, 2023
1022815
Update comments
josh-gaby May 13, 2023
62da503
Update tests
josh-gaby May 13, 2023
b45aa35
Merge pull request #3 from josh-gaby/php82
josh-gaby May 13, 2023
addf94f
Update PHPUnit to v9
josh-gaby May 13, 2023
67f655b
Update PHPUnit to v9
josh-gaby May 13, 2023
6b88bc1
Update workflow
josh-gaby May 13, 2023
6a6b3f9
Update workflow
josh-gaby May 13, 2023
95e07c0
Update workflow
josh-gaby May 13, 2023
cb3f72b
Update workflow
josh-gaby May 13, 2023
bd33ac5
Update workflow
josh-gaby May 13, 2023
b58f1fa
Update workflow
josh-gaby May 13, 2023
3020d28
Update workflow
josh-gaby May 13, 2023
d14857d
Update workflow
josh-gaby May 13, 2023
56b8cec
Update workflow
josh-gaby May 13, 2023
cd914b4
Update workflow
josh-gaby May 13, 2023
129c47e
Update workflow
josh-gaby May 13, 2023
4110b83
Update workflow
josh-gaby May 13, 2023
158e944
Update workflow
josh-gaby May 13, 2023
6bddff9
Update workflow
josh-gaby May 13, 2023
2112cd0
Update workflow
josh-gaby May 13, 2023
572f3d0
Update workflow
josh-gaby May 13, 2023
be721b4
Update workflow
josh-gaby May 13, 2023
a7ffaa1
Update workflow
josh-gaby May 13, 2023
e9d5aee
Update workflow
josh-gaby May 13, 2023
cf012e1
Update workflow
josh-gaby May 13, 2023
353284d
Update workflow
josh-gaby May 13, 2023
6bfc3fb
Update workflow
josh-gaby May 13, 2023
e2ab1f2
Update workflow
josh-gaby May 13, 2023
ee9e32f
Update workflow
josh-gaby May 13, 2023
3eb5ebd
Update test to use @before/@after annotations instead of setUp/tearDown
josh-gaby May 14, 2023
1b8afc5
Remove invalid configurations and add missing @covers
josh-gaby May 14, 2023
203b09f
Remove unused syntaxCheck from PHPUnit config
josh-gaby May 14, 2023
f03ed0d
Remove usage of symfony/http-foundation >= 6
josh-gaby May 14, 2023
6fa228f
Test switching to createMock
josh-gaby May 14, 2023
672cac4
Test switching to expectedException
josh-gaby May 14, 2023
b7de821
Test switching to createMock
josh-gaby May 14, 2023
5bbdaa3
Revert to getMock
josh-gaby May 14, 2023
51f73d3
Revert to getMock
josh-gaby May 14, 2023
3953527
Update checkout version
josh-gaby May 14, 2023
eba9487
Test extended testcase to allow switching between getMock/createMock
josh-gaby May 14, 2023
f662dfd
Test extended testcase to allow switching between getMock/createMock
josh-gaby May 14, 2023
f75aa4b
Test extended testcase to allow switching between getMock/createMock
josh-gaby May 14, 2023
2ae3ea8
Test extended testcase to allow switching between getMock/createMock
josh-gaby May 14, 2023
3c0701e
Test extended testcase to allow switching between getMock/createMock
josh-gaby May 14, 2023
2578564
Add switches to support PHPUnit < 6 and > 6
josh-gaby May 14, 2023
b70073f
Add switches to support PHPUnit < 6 and > 6
josh-gaby May 14, 2023
12a1a13
Add switches to support PHPUnit < 6 and > 6
josh-gaby May 14, 2023
3e7f7f1
Update to getMockBuilder
josh-gaby May 14, 2023
2904585
Revert some getMockBuilder
josh-gaby May 14, 2023
c62998b
Update TopicTest
josh-gaby May 14, 2023
f3559e9
Update TopicTest
josh-gaby May 14, 2023
cd493aa
Update Connection
josh-gaby May 14, 2023
8f4a6dd
Revert changes
josh-gaby May 14, 2023
6590803
Revert changes
josh-gaby May 14, 2023
836a02c
Update asserts
josh-gaby May 14, 2023
ccfaf84
Try list() for array destructuring in testConnIsRemovedFromTopicOnClose
josh-gaby May 14, 2023
533b273
list() for array destructuring
josh-gaby May 14, 2023
3e8e3c2
Merge pull request #4 from josh-gaby/php82
josh-gaby May 14, 2023
755977d
Remove workflow_dispatch
josh-gaby May 14, 2023
003d972
Merge pull request #5 from josh-gaby/php82
josh-gaby May 14, 2023
634792a
Remove unnecessary include from HttpServer
josh-gaby May 14, 2023
d13402f
Merge pull request #6 from josh-gaby/php82
josh-gaby May 14, 2023
136f614
Add http-foundation 6.0 back
josh-gaby May 14, 2023
7c28424
Test return types
josh-gaby May 14, 2023
54c0aef
Allow manual work flow runs
josh-gaby May 14, 2023
e7e7e32
Horrible hack to allow symfony/http-foundation >= 6.0 (definitely nee…
josh-gaby May 14, 2023
dc69b28
Update to horrible hack to allow symfony/http-foundation >= 6.0 while…
josh-gaby May 14, 2023
6d2f6a2
Merge pull request #7 from josh-gaby/php82
josh-gaby May 14, 2023
bc519b9
Allow the WsConnection close function to include the optional reason.
josh-gaby May 23, 2023
56a7c2b
Update ci.yml
josh-gaby Jul 16, 2023
4311014
Update ci.yml
josh-gaby Jul 16, 2023
be5e072
Add missing __isset function to the IoConnection class.
josh-gaby Jan 9, 2024
688b810
refactor: switch to using a dynamic properties trait
josh-gaby Aug 9, 2024
dc5edca
refactor: switch IoConnection to use the new dynamic properties trait
josh-gaby Aug 9, 2024
30959f5
ci: re-enable running ci on a schedule
josh-gaby Aug 9, 2024
0505b4a
Merge branch 'master' into php82
josh-gaby Aug 9, 2024
4982587
Merge pull request #8 from josh-gaby/php82
josh-gaby Aug 9, 2024
dd55fb1
Provide a way to set and unset a dynamic property.
NigelCunningham Aug 10, 2024
b7eca19
Merge pull request #9 from NigelCunningham/master
josh-gaby Nov 5, 2024
421a5b8
feat: add support for symfony v7
josh-gaby Dec 6, 2024
56d26cf
Merge pull request #10 from josh-gaby/php82
josh-gaby Dec 6, 2024
e25741c
Merge branch 'ratchetphp:master' into master
josh-gaby Dec 7, 2024
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
Prev Previous commit
Next Next commit
Add switches to support PHPUnit < 6 and > 6
  • Loading branch information
josh-gaby committed May 14, 2023
commit b70073fbc5c8082a0da0b0f7d1cbb010e54adcf6
2 changes: 1 addition & 1 deletion tests/helpers/Ratchet/RatchetTestCase.php
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ public function _getMock() {

public function _setExpectedException($exception) {
if ($this->_version() < 6) {
call_user_func_array([$this, 'setExpectedException'], $exception);
call_user_func_array([$this, 'setExpectedException'], [$exception]);
} else {
if (substr($exception, 0, 17) === 'PHPUnit_Framework') {
$exception = str_replace('_', '\\', $exception);