Changes between Initial Version and Version 1 of Ticket #53945, comment 29
- Timestamp:
- 09/02/2021 03:19:48 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #53945, comment 29
initial v1 13 13 the subtle difference of `run phpunit phpunit` vs `run phpunit php ./vendor/bin/phpunit`. 14 14 15 Running `npm run test:php` on one of my machines that doesn't have PHPUnit phar installed nor PHPUnit installed via composer globally, it works. The only instance of PHPUnit is in the vendor bin. 15 ~~Running `npm run test:php` on one of my machines that doesn't have PHPUnit phar installed nor PHPUnit installed via composer globally, it works. The only instance of PHPUnit is in the vendor bin.~~ 16 16 17 Why does it work? Hmm, I'll do more investigation and testing to discover why. 17 ~~Why does it work? Hmm, I'll do more investigation and testing to discover why.~~ 18 19 **Update**: 20 21 Okay I see. The phar is installed in the Docker container and that's used when running `npm run test:php`. I mistakingly thought this phar file wasn't installed in the container but instead only Composer version was used. My mistake. 22 23 So yes, [https://github.com/WordPress/wordpress-develop/pull/1647 PR 1647] is invalid. 24 25 Also, we'll need to update the handbook and README.md for when to use `test:php` vs. `test:php-composer`.