i have pear's phpunit installed (see image)
I have that path in the include path (see image below) in php.ini. Note, other pear installations have worked with this include path, so I know there's nothing wrong with that path per see.
Yet,开发者_开发百科 when I'm trying to do a an example functional test with Yii , I move into the directory protected/tests/ and run this code (provided by a book I'm learning)
% cd protected/tests/
% phpunit functional/SiteTest.php
I get told
-bash: phpunit: command not found
any idea what I'm doing wrong?
It means that your shell cannot find the phpunit
command. Specify the full path to the command.
/some/path/here/phpunit ....php
Well, the command phpunit
couldn't be found. Are you trying to run a PHP file? In that case, write:
php phpfile.php
Otherwise, specify the full path to the command.
精彩评论