Pending

User tests: Successful: Unsuccessful:

avatar richard67
richard67
17 Oct 2025

Pull Request for Issue # .

Summary of Changes

This pull request (PR) updates the composer dependency "joomla/test" from version 4.0 to version 4.0.1 for the 6.0-dev branch.

The only change pulled with this update is the one from PR joomla-framework/test#19 to fix a deprecation notice on PHP 8.5 for the setAccessible() methods of various Reflection objects.

Release note: https://github.com/joomla-framework/test/releases/tag/4.0.1 .

See also https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_reflectionsetaccessible .

Testing Instructions

  • Use php 8.5 (latest pre-version).
  • Run composer install
  • Run unit tests ./libraries/vendor/bin/phpunit --testsuite Unit
  • Check PHP error log

Actual result BEFORE applying this Pull Request

Deprecation messages ReflectionMethod::setAccessible() is deprecated.

Expected result AFTER applying this Pull Request

None of these messages for the joomla/tes depencendies.

Remaining messages will be fixed when the changes from PR #46202 in 5.4-dev have been merged up into 6.0-dev:

administrator/components/com_scheduler/src/Traits/TaskPluginTrait.php
tests/Unit/Libraries/Cms/Feed/FeedFactoryTest.php
tests/Unit/Libraries/Cms/Feed/Parser/AtomParserTest.php
tests/Unit/Libraries/Cms/Feed/Parser/RssParserTest.php
tests/Unit/Libraries/Cms/Microdata/MicrodataTest.php
tests/Unit/Libraries/Cms/Updater/ConstraintCheckerTest.php
tests/Unit/Libraries/Cms/Updater/TufAdapterTest.php

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar richard67 richard67 - open - 17 Oct 2025
avatar richard67 richard67 - change - 17 Oct 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Oct 2025
Category External Library Composer Change
avatar muhme muhme - test_item - 17 Oct 2025 - Tested unsuccessfully
avatar muhme
muhme - comment - 17 Oct 2025

I have tested this item 🔴 unsuccessfully on fa47705

Tested with JBT, PHP 8.5.0RC2

  • Before the PR seen 76 ReflectionMethod::setAccessible() is deprecated
  • Applied PR by gh pr checkout 46310 and running composer i
    • ❌ There are still 53 ReflectionMethod::setAccessible() is deprecated - With regard to the test instructions, this causes the test to fail.
      • Remaining places are
        administrator/components/com_scheduler/src/Traits/TaskPluginTrait.php
        tests/Unit/Libraries/Cms/Feed/FeedFactoryTest.php
        tests/Unit/Libraries/Cms/Feed/Parser/AtomParserTest.php
        tests/Unit/Libraries/Cms/Feed/Parser/RssParserTest.php
        tests/Unit/Libraries/Cms/Microdata/MicrodataTest.php
        tests/Unit/Libraries/Cms/Updater/ConstraintCheckerTest.php
        tests/Unit/Libraries/Cms/Updater/TufAdapterTest.php
        
    • â„šī¸ And there are another 24 different deprecations
      This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46310.
avatar wojsmol
wojsmol - comment - 17 Oct 2025

@muhme Remaining deprecation should be fixed after 5.4-dev upmerge - fixed in #46202

avatar richard67 richard67 - change - 17 Oct 2025
The description was changed
avatar richard67 richard67 - edited - 17 Oct 2025
avatar richard67
richard67 - comment - 17 Oct 2025

Thanks, I've updated the testing instructions.

avatar muhme muhme - test_item - 19 Oct 2025 - Tested successfully
avatar muhme
muhme - comment - 19 Oct 2025

I have tested this item ✅ successfully on fa47705

Retested after changed test description with JBT, PHP 8.5.0RC2

  • Before the PR seen 23 ReflectionMethod::setAccessible() is deprecated from libraries/vendor/joomla/test/src/TestHelper.php
  • Applied PR by gh pr checkout 46310 and running composer i
  • ✅ No more ReflectionMethod::setAccessible() is deprecated from libraries/vendor/joomla/test/src/TestHelper.php file
  • â„šī¸ There are still 77 deprecation messages, including 53 ReflectionMethod::setAccessible()
    This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46310.

Add a Comment

Login with GitHub to post a comment