几天来,我一直在尝试让PHPUnit与PHPStorm中的Codeigniter配合使用。我已经通过Composer安装了PHPUnit,并且似乎在不涉及CodeIgniter的简单单元测试中可以正常工作。
我遵循了这里的(简单)指南来设置PHPUnit和IDE中的Codeigniter:http://www.jamesfairhurst.co.uk/posts/view/codeigniter_phpunit_and_netbeans 但PHPStorm中的调试器仍然返回相同的错误,即Codeigniter的404页面的HTML和CSS以及“用退出代码0完成进程”。从终端运行时也是如此。
如指南所述,我设置了一个.xml配置文件用于加载引导文件的PHPUnit,该引导文件应该初始化Codeigniter。
我遵循了这里的(简单)指南来设置PHPUnit和IDE中的Codeigniter:http://www.jamesfairhurst.co.uk/posts/view/codeigniter_phpunit_and_netbeans 但PHPStorm中的调试器仍然返回相同的错误,即Codeigniter的404页面的HTML和CSS以及“用退出代码0完成进程”。从终端运行时也是如此。
如指南所述,我设置了一个.xml配置文件用于加载引导文件的PHPUnit,该引导文件应该初始化Codeigniter。
<phpunit bootstrap="bootstrap.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
verbose="true">
</phpunit>
我现在非常困惑,如何在PHPStorm中让PHPUnit与Codeigniter协同工作呢?我怀疑这与输出类有关。但是,我刚开始接触CodeIgniter,对PHPUnit也不是很了解。
欢迎任何帮助!