Skip to content

test: phpunit exception not restored#7949

Merged
soyuka merged 2 commits intoapi-platform:mainfrom
soyuka:test/restore-exception
May 5, 2026
Merged

test: phpunit exception not restored#7949
soyuka merged 2 commits intoapi-platform:mainfrom
soyuka:test/restore-exception

Conversation

@soyuka
Copy link
Copy Markdown
Member

@soyuka soyuka commented May 4, 2026

No description provided.

@soyuka soyuka force-pushed the test/restore-exception branch 2 times, most recently from b4a084c to 7cd92fd Compare May 5, 2026 09:44
| Q             | A
| ------------- | ---
| Branch?       | main
| Tickets       | ∅
| License       | MIT
| Doc PR        | ∅

ApiTestCase now snapshots the exception handler stack via #[Before]/#[After]
hooks (works even when subclasses override setUp without parent::setUp()).
Bump symfony/http-kernel to ^6.4.13 to skip the ErrorListener handler leak
and drop the AppKernel restore_exception_handler() workarounds.
@soyuka soyuka force-pushed the test/restore-exception branch from 7cd92fd to 9d069b4 Compare May 5, 2026 12:31
@soyuka soyuka merged commit 5ca0b57 into api-platform:main May 5, 2026
119 checks passed
@soyuka soyuka deleted the test/restore-exception branch May 5, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant