Getting PHPUnit Working - Include Path not set correctly?

后端 未结 5 894
我在风中等你
我在风中等你 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条回答
  •  猫巷女王i
    2020-12-08 08:20

    Make sure every time to use include() or require(), you prefix the actual file name with dirname(__FILE__). This ensures that the file you are including is at the path you specify relative to the actual file that the include is in. By deftault, PHP includes relative to the file that is invoked to start the program.

提交回复
热议问题