fatal error 'File/Iterator/Autoload.php' not found when running phpunit

后端 未结 11 1227
滥情空心
滥情空心 2020-12-09 08:30

I am getting this error while i tried to run testclass in phpunit.

C:\\xampp\\htdocs\\unittest>phpunit UnitTest usertest.php
PHP Warning:  require_once(Fi         


        
11条回答
  •  庸人自扰
    2020-12-09 08:50

    I am using Ubuntu 14.04 and I installed phpunit via Ubuntu Software Center which didn't work.

    Finally I remove it and I followed instructions from here

    wget https://phar.phpunit.de/phpunit.phar  
    chmod +x phpunit.phar  
    sudo mv phpunit.phar /usr/local/bin/phpunit
    

提交回复
热议问题