-
-
Notifications
You must be signed in to change notification settings - Fork 48
feat: require php 8.1 & update phpunit to v10 #127
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,11 +13,11 @@ | |
| "repositories": [ | ||
| { | ||
| "type": "git", | ||
| "url": "https://github.com/kornrunner/phpunit-testlistener-vcr" | ||
| "url": "https://github.com/marmichalski/phpunit-testlistener-vcr" | ||
| } | ||
| ], | ||
| "require": { | ||
| "php": ">=8.0", | ||
| "php": "^8.1", | ||
| "psr/http-message": "^1.0|^2.0" | ||
| }, | ||
| "suggest": { | ||
|
|
@@ -28,11 +28,11 @@ | |
| "ext-mongodb": "Allows the usage of MongoDBAdapter" | ||
| }, | ||
| "require-dev": { | ||
| "phpunit/phpunit": "^9.5.10", | ||
| "phpunit/phpunit": "^10.5.41", | ||
| "symfony/http-client": "^5.3.12|^6.0", | ||
| "symfony/yaml": "^3.0|^4.0|^5.0|^6.0", | ||
| "php-vcr/php-vcr": "^1.4.5", | ||
| "php-vcr/phpunit-testlistener-vcr": "dev-php8 as 3.2.2", | ||
| "php-vcr/php-vcr": "dev-master#c0aeeba0f3804fcfdb9cd6b390b0cb3be250c070 as 1.9.0", | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. php 8.4 support is not tagged 😭 |
||
| "php-vcr/phpunit-testlistener-vcr": "dev-phpunit-evt-system", | ||
| "php-coveralls/php-coveralls": "~2.5", | ||
| "predis/predis": "^1.1", | ||
| "guzzlehttp/guzzle": "^7.4.5", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| FROM php:8.0-cli | ||
| FROM php:8.1-cli | ||
|
|
||
| COPY install_composer.sh /tmp/ | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,26 +66,24 @@ public function recordsSuccessAndClose() | |
| /** | ||
| * @test | ||
| */ | ||
| public function notifyTripped() | ||
| public function tripsOnce() | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not entirely certain what this test was asserting, my assumption here is that the
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are right! My intention was to test that Ganesha::EVENT_TRIPPED is triggered, and that it happens only once. |
||
| { | ||
| $ganesha = $this->buildGanesha( | ||
| 2, | ||
| 10 | ||
| ); | ||
| $ganesha = $this->buildGanesha(2, 10); | ||
|
|
||
| $receiver = $this->getMockBuilder('\stdClass') | ||
| ->setMethods(['receive']) | ||
| ->getMock(); | ||
| $receiver->expects($this->once()) | ||
| ->method('receive') | ||
| ->with(Ganesha::EVENT_TRIPPED, $this->service, ''); | ||
| $calledTimes = 0; | ||
|
|
||
| $ganesha->subscribe(function ($event, $service, $message) use ($receiver) { | ||
| $receiver->receive($event, $service, $message); | ||
| $ganesha->subscribe(function ($event, $service, $message) use (&$calledTimes) { | ||
| $this->assertSame(Ganesha::EVENT_TRIPPED, $event); | ||
| $this->assertSame($this->service, $service); | ||
| $this->assertSame('', $message); | ||
|
|
||
| ++$calledTimes; | ||
| }); | ||
|
|
||
| $ganesha->failure($this->service); | ||
| $ganesha->failure($this->service); | ||
|
|
||
| $this->assertSame(1, $calledTimes); | ||
| } | ||
|
|
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PHPUnit 10 event system support: php-vcr/phpunit-testlistener-vcr#45