Published 1 week ago by Webiondev123
I am unable to run phpunit test from root folder but when I change to vender/bin I can run phpunit but cannot test. It says cannot open file
c:\wamp64\www\fundtheneedy>phpunit 'phpunit' is not recognized as an internal or external command, operable program or batch file.
c:\wamp64\www\fundtheneedy\vendor\bin>phpunit ExampleTest Cannot open file "ExampleTest.php".
From windows command line it givs
c:\wamp64\www\fundtheneedy>vendor/bin/phpunit 'vendor' is not recognized as an internal or external command, operable program or batch file.
Also where do I create .bashrc file? in my root laravel app? That makes it .bashrc.sh which I tried but still not working
Actually missed the
c:\ bit... I don't use Windows, so not sure what the optimal solution might be for a local project installation.
I would think that you could install PHPUnit globally and ensuring that the
composer/bin directory in your User directory is included in your PATH, you could use
phpunit anywhere throughout your system.