-
Notifications
You must be signed in to change notification settings - Fork 5
chore: widen dependencies to support latest packages (2025-03-23) #56
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
Merged
zakhar-huzenko
merged 9 commits into
cursor/development-environment-setup-f6b2
from
cursor/dependency-constraint-widening-e8e1
Mar 24, 2026
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
8138900
chore(deps): upgrade dev tooling and widen doctrine/orm for ORM 3
cursoragent 5c314b0
chore: PHPUnit 12 test updates, PHPStan lowest-deps, Makefile, CI
cursoragent 448d07c
fix(ci): allow PHPUnit 10–12 for PHP 8.1/8.2; relax codecov CI failure
cursoragent 708c335
fix(phpunit): PHPUnit 12 coverage source + valid schema for CI
cursoragent de68ded
feat: allow Behat 4.x-dev and Symfony 8 alongside Behat 3 / Symfony 5–7
cursoragent fe52abe
fix(di): replace XML services with PHP config for Symfony 8
cursoragent 4baeebf
fix(phpstan): resolve issues without ignore list
cursoragent 8934dd7
test: cover getResponseBody false branch; exclude impossible Configur…
cursoragent fb008c6
fix(test): import global RuntimeException for expectException
cursoragent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| .PHONY: cs-fix rector phpunit phpstan phpcs dev-checks | ||
|
|
||
| cs-fix: | ||
| composer run code-style-fix | ||
|
|
||
| rector: | ||
| @if [ -x vendor/bin/rector ]; then vendor/bin/rector --dry-run; else echo "rector not installed; skipping"; fi | ||
|
|
||
| phpunit: | ||
| composer run phpunit | ||
|
|
||
| phpstan: | ||
| composer run phpstan | ||
|
|
||
| phpcs: | ||
| composer run code-style | ||
|
|
||
| dev-checks: | ||
| composer run dev-checks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| use BehatApiContext\Context\ApiContext; | ||
| use BehatApiContext\Service\ResetManager\DoctrineResetManager; | ||
| use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
|
|
||
| return static function (ContainerConfigurator $container): void { | ||
|
alekseytupichenkov marked this conversation as resolved.
|
||
| $services = $container->services(); | ||
|
|
||
| $services->set(ApiContext::class) | ||
| ->public() | ||
| ->autowire() | ||
| ->autoconfigure(); | ||
|
|
||
| $services->set(DoctrineResetManager::class) | ||
| ->autowire(false) | ||
| ->autoconfigure(false); | ||
| }; | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace BehatApiContext\Tests\Unit\Context\Api; | ||
|
|
||
| use BehatApiContext\Context\ApiContext; | ||
| use ReflectionMethod; | ||
| use RuntimeException; | ||
| use Symfony\Component\HttpFoundation\Response; | ||
|
|
||
| final class ApiContextResponseBodyTest extends ApiContextTestCase | ||
| { | ||
| public function testGetResponseBodyThrowsWhenResponseContentNotAvailable(): void | ||
|
alekseytupichenkov marked this conversation as resolved.
|
||
| { | ||
| $response = $this->createMock(Response::class); | ||
| $response->method('getContent')->willReturn(false); | ||
|
|
||
| $method = new ReflectionMethod(ApiContext::class, 'getResponseBody'); | ||
| $method->setAccessible(true); | ||
|
|
||
| $this->expectException(RuntimeException::class); | ||
| $this->expectExceptionMessage('The response body is not available.'); | ||
| $method->invoke($this->apiContext, $response); | ||
| } | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.