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

后端 未结 11 1245
滥情空心
滥情空心 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 09:06

    Look at the error:

     (include_path='.;C:\php\pear') in C:\xampp\php\pear\PHPUnit\Autoload.php
    

    The Xampp is trying to locate that file in include_path .;C:\php\pear But The path for the pear is .;C:\xampp\php\pear.

    Set the right path for the pear and it will work. I just made it.

提交回复
热议问题