PHPUnit-不执行任何操作,没有错误,没有输出 [英] PHPUnit - does nothing, no errors, no output
问题描述
很抱歉出现另一个"phpunit无法正常工作"的问题.它曾经工作了多年.今天,由于与该问题无关的原因,我重新安装了PEAR和phpunit.现在,当我像往常一样运行phpunit时.什么都没发生. cli只是向我显示了一条新行,没有任何输出.
Sorry for another 'phpunit doesn't work' question. It used to work for years now. Today I reinstalled PEAR and phpunit for reasons not connected to this problem. Now when I run phpunit as I usually did. Nothing happens. The cli just shows me a new line, no output whatsoever.
有人遇到此问题或有什么想法可能导致此问题.
Has anyone encountered this problem or has an idea what could have caused it.
PHPUnit Version: 3.5.15
PEAR Version: 1.9.4
PHP Version: 5.3.8
Windows 7
推荐答案
创建最简单的测试类,无需bootstrap.php
或phpunit.xml
即可首先验证您的新安装是否有效.如果在运行任何测试之前,PHPUnit无法实例化所有测试用例(每个测试方法和数据提供者一个实例),它将停止运行而不会发出任何消息.
Create the simplest test class you can without a bootstrap.php
or phpunit.xml
to first verify that your new installation works. PHPUnit will stop without any message if it cannot instantiate all of the test cases--one for each test method and data provider--before running any tests.
这篇关于PHPUnit-不执行任何操作,没有错误,没有输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!