Getting PHPUnit Working - Include Path not set correctly?

后端 未结 5 875
我在风中等你
我在风中等你 2020-12-08 07:39

I\'m trying to get PHPUnit working on my development environment but I\'ve hit a bit of a roadblock when it comes to including PHPUnit in my scripts. I know that I need to s

5条回答
  •  轮回少年
    2020-12-08 08:18

    Add this line to your php.ini :

    include_path=".:/usr/share/php:/usr/share/pear:/usr/share/php/PHPunit:/usr/share/php/PEAR"
    

    Save the file and restart apache.

    Also, make sure you editing the correct php.ini. Try using locate php.ini to find all the places it might be hiding. It's usually under the /usr directory somewhere.

提交回复
热议问题