How to give options in command line tool for PHPUnit command in laminas

Hi, I tried to use the PHPUnit option --testdox and it didn’t work. Example below:

composer test --testdox

Whereas the below command worked.

./vendor/bin/phpunit --testdox

Thanks!

Check the Composer documentation and you will find a special argument separation operator --:

1 Like

Thanks! For people who would want to know the difference in commands. The answer is below.

composer test -- --testdox