【发布时间】:2017-05-18 11:07:16
【问题描述】:
对于我正在开发的 oxid eshop,我将 Oxid testing library 与 composer 一起实现到另一个目录中。该商店(本地)在 apache docker 容器中运行,其中的结构如下:
/var/www/
|
| - html/ <Shop Document Root>
| |
| | ...
| |
|
| - tests/ <Directory where tests reside>
| |
| | - vendor/
| |
| | ...
从 /var/www/ 我运行 tests/vendor/bin/runtests 并获得以下输出:
无法打开文件“AllTestsUnit.php”
我通过将此文件的绝对路径添加到 runtests 中的适当位置来解决此问题,但我不想使用此“hack”,因为我不想每次都修改文件我安装库的时间。
为了避免这种情况,我尝试将路径放入 php.ini 的 include_path,现在看起来如下所示:
include_path=".:/var/www/tests/vendor/oxid-esales/testing-library/"
我尝试了很多变体(没有斜杠,使用单引号,...),但似乎没有任何效果。有趣的是,它以前有效,但现在无效。使用与以前完全相同的配置(我在 PHPStorm 中查看了我的本地历史记录)。
是否有人在让库正常工作时遇到过相同或类似的问题?如果没有,是否有其他人知道我做错了什么?
提前感谢您的帮助。
【问题讨论】:
标签: php testing configuration include-path oxid