Skip to content

Mock the phpBB 4.0 extension finder class in ext_test - #10

Merged
bonelifer merged 1 commit into
mainfrom
fix-ext-test-phpbb4
Oct 6, 2026
Merged

bonelifer merged 1 commit into
mainfrom
fix-ext-test-phpbb4

Conversation

@bonelifer

Copy link
Copy Markdown
Contributor

Summary

  • phpBB 4.0 moved the extension finder from \phpbb\finder to \phpbb\finder\finder, so ext_test::test_purge_removes_owned_options_and_all_grants_but_disable_preserves_them errored on 4.0 with "Class or interface "phpbb\finder" does not exist".
  • The test now mocks whichever finder class exists. No extension code changes.

Testing

  • Claude ran PHPUnit 9.6 against phpBB 3.3.19 and phpBB 4.0 (master): 104 tests pass on both, none skipped.

Investigated and written by Claude on behalf of William Jacoby (bonelifer).

phpBB 4.0 moved the finder from \phpbb\finder to \phpbb\finder\finder, so the purge test errored there. Mock whichever class exists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bonelifer
bonelifer merged commit 5f9aa00 into main Oct 6, 2026
7 checks passed
@bonelifer
bonelifer deleted the fix-ext-test-phpbb4 branch October 6, 2026 08:21
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