开发者

what's the meaning of -bash PHPUnit command not found

开发者 https://www.devze.com 2023-03-08 17:59 出处:网络
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 n

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?

what's the meaning of -bash PHPUnit command not found

what's the meaning of -bash PHPUnit command not found


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消