Getting PHPUnit Working - Include Path not set correctly?

后端 未结 5 898
我在风中等你
我在风中等你 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

    I was able to get it working by using set_include_path at the top of my script (see example here http://www.siteconsortium.com/h/p1.php?id=php002), and then I also had to include since I was running a Selenium test, but it worked.

    require_once ('PHPUnit/Autoload.php');
    require_once 'PHPUnit/Extensions/SeleniumTestCase.php';
    

提交回复
热议问题