Created
February 16, 2011 10:01
-
-
Save fasthold/829118 to your computer and use it in GitHub Desktop.
zend framework phpunit configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<phpunit bootstrap="./TestHelper.php" colors="true"> | |
<!-- Version: $Id$ --> | |
<testsuite name="Zend Framework Unit Test Demo"> | |
<directory>./</directory> | |
</testsuite> | |
<filter> | |
<whitelist> | |
<directory suffix=".php">../library/</directory> | |
<directory suffix=".php">../application/</directory> | |
<exclude> | |
<directory suffix=".phtml">../application/</directory> | |
</exclude> | |
</whitelist> | |
</filter> | |
<logging> | |
<!-- <log type="coverage-html" target="./logs/report" charset="UTF-8" | |
yui="true" highlight="true" lowUpperBound="50" highLowerBound="80"/> --> <!-- 取消注释此行,即启用 CodeCoverage --> | |
<log type="testdox-html" target="./logs/testdox.html" /> | |
</logging> | |
</phpunit> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
指令:
phpunit --configuration phpunit.xml
如果是指定测试某一个controller,则使用:
phpunit --configuration phpunit.xml /path/to/basedir/tests/controller/SomeControllerTest.php