• Resolved Howdy_McGee

    (@howdy_mcgee)


    I’m running WAMP 3.3.1 (64bit) with PHP 8.2.5 – I’ve installed WordPress/wordpress-develop and have it sorta setup. The build process works fine.

    The problem I keep running into is Composer installing the wrong version of phpunit. On composer install I get phpunit 4.8.36.

    I’ve tried running composer update but no change.

    I’ve tried clearing my composer cache via composer clear-cache and composer install --no-cache but still, 4.8.36.

    I’ve tried fully reinstalling WordPress/wordpress-develop, but the issue persists.

    Any ideas, suggestions, explanations is appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Just download the latest version and replace the old one. It is provided from the phpunit homepage.

    $ wget https://phar.phpunit.de/phpunit.phar
    
    $ chmod +x phpunit.phar
    
    $ sudo mv phpunit.phar /usr/local/bin/phpunit
    

    You are in the latest version. To check version you can use

    $ phpunit --check-version
    Thread Starter Howdy_McGee

    (@howdy_mcgee)

    Thanks, that’s one option.

    I’m trying to understand why this is happening to begin. I shouldn’t have to manually install phpunit every update. I’ve run wordpress-dev unit tests with the same setup before, not sure why this is cropping up now.

    Thread Starter Howdy_McGee

    (@howdy_mcgee)

    My global composer install was from 2021. Once I updated composer and re-ran composer install, it pulled in the correct versions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wordpress-develop incorrect phpunit version’ is closed to new replies.