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

后端 未结 11 1216
滥情空心
滥情空心 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:48

    I had the same issue with windows 7 and xampp(php 5.6.11), I tried all reinstalling pear and phpunit but it didn't work. When I checked the permission of the C:\xammp\php\pear directory it was read-only, After I changed the permission it started working.

提交回复
热议问题