Title: wordpress-develop incorrect phpunit version
Last modified: December 12, 2023

---

# wordpress-develop incorrect phpunit version

 *  Resolved [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * (@howdy_mcgee)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/wordpress-develop-incorrect-phpunit-version/)
 * 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)

 *  [iFlair Web Technologies Pvt.](https://wordpress.org/support/users/jinalshah/)
 * (@jinalshah)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/wordpress-develop-incorrect-phpunit-version/#post-17271114)
 * Just download the latest version and replace the old one. It is provided from
   the phpunit homepage.
 *     ```wp-block-code
       $ 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
 *     ```wp-block-code
       $ phpunit --check-version
       ```
   
 *  Thread Starter [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * (@howdy_mcgee)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/wordpress-develop-incorrect-phpunit-version/#post-17271311)
 * 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](https://wordpress.org/support/users/howdy_mcgee/)
 * (@howdy_mcgee)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/wordpress-develop-incorrect-phpunit-version/#post-17271964)
 * 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.

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 4 replies
 * 2 participants
 * Last reply from: [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/wordpress-develop-incorrect-phpunit-version/#post-17271964)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
