Repository navigation
Pre-release 4.2.114 → 4.2.113 — task 2.17 step 3: the fork's suite on PHPUnit 11.5 - #86
Merged
Merged
Conversation
agissept
force-pushed
the
pre-release/4.2.114
branch
from
September 30, 2026 10:37
f207f82 to
1b7a8dd
Compare
agissept
force-pushed
the
pre-release/4.2.114
branch
from
October 1, 2026 08:48
1b7a8dd to
fd37026
Compare
agissept
marked this pull request as ready for review
October 1, 2026 08:52
agissept
approved these changes
Oct 1, 2026
Require-dev: phpunit/phpunit ^11.5 (was ~9.6), mockery/mockery ^1.6, phpspec/prophecy-phpunit ^2.3. illuminate/testing v13 targets PHPUnit 11.5/12.5. - phpunit.xml moves to the 11.5 schema: <coverage> becomes <source>, and the removed convert*ToExceptions options are replaced by failOnDeprecation/failOnNotice/failOnWarning, so a PHP warning or deprecation still fails the run. - HandlerTest's two handleError() tests run #[WithoutErrorHandler]: PHPUnit 11's error handler masks error_reporting() while a test runs, so the handler under test saw E_USER_ERROR as disabled. - @test doc-comments become #[Test] attributes (doc-comment metadata is deprecated in 11 and gone in 12); getObjectForTrait() becomes an anonymous class. - BackwardCompatibleTestCase::getMock() keeps only the arguments its callers pass (class, methods, constructor arguments), dropping the MockBuilder calls PHPUnit 11 deprecates. Fork suite: 320 tests green, no deprecations, notices or warnings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0169SsatCE8LhaTsQTPiGtVo
agissept
force-pushed
the
pre-release/4.2.114
branch
from
October 1, 2026 10:33
fd37026 to
da7764f
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Task 2.17, step 3 — the fork's suite on PHPUnit 11.5
Stacks on #85. Moves the fork's own test suite from PHPUnit 9.6 to 11.5, the version
illuminate/testingv13 targets (11.5 or 12.5). Only require-dev, the test config, tests and theL4\Teststest helper change; nothing an app loads at runtime does.Changes
phpunit/phpunit ^11.5(was~9.6),mockery/mockery ^1.6(was~1.3) andphpspec/prophecy-phpunit ^2.3(was~2.0).phpunit.xml: moves to the 11.5 schema, and<coverage>becomes<source>. PHPUnit 10 removedconvert*ToExceptions;failOnDeprecation,failOnNoticeandfailOnWarningreplace them, so a PHP warning or deprecation still fails the run.HandlerTest:handleError()tests run with#[WithoutErrorHandler]. While a test runs, PHPUnit 11's own error handler maskserror_reporting()down to fatal levels, so the handler under test sawE_USER_ERRORas disabled and threw nothing.@testdoc-comments become#[Test](doc-comment metadata is deprecated in 11 and removed in 12).getObjectForTrait(), deprecated in 11, becomes an anonymous class.BackwardCompatibleTestCase::getMock(): keeps only the arguments its callers pass (class, methods, constructor arguments). That drops theMockBuildercalls PHPUnit 11 deprecates (enableAutoload,disableProxyingToOriginalMethods, …).Verification
composer validateOK;composer.json(with rector) resolves: phpunit 11.5.56, mockery 1.6.15, prophecy-phpunit 2.5.0.feature/platform/framework-4.2.114-rc1) moves the app's suites to PHPUnit 11.5 on top of this pin. It ran with vendor installed exactly from its lock and the local SMTP sink on127.0.0.1:1025:BeanstalkdQueueBoringTestagainst a real worker: green.TestListener, restoring the handlers each test's app registers, and atearDown()that tolerates a skip insetUp().Rest of 2.17
@testdoc-comments still work on 11 (with PHPUnit deprecations). Moving them to attributes is the PHPUnit 12 step.call()returnsTestResponse;Tag
4.2.114onf207f827is not pushed; tag pushes are refused for this session.🤖 Generated with Claude Code
https://claude.ai/code/session_0169SsatCE8LhaTsQTPiGtVo