我想在不同的进程中运行我的测试。正因为如此,我想用"@runTestsInSeparateProcesses“来注释我的测试。然而,我以前从来没有注释过Phpunit测试,我也找不到一个好的描述来说明将注释实际放在哪里。我已经看到了不同的注解做了什么,只是不知道把它们放在哪里。谁能给我举个例子?
谢谢!
发布于 2012-05-24 01:40:35
将注释应用于测试用例的docblock:
/**
* Short Description
*
* @param string $input The test input
*
* @return bool The result
*
* @runTestsInSeparateProcesses
*/
public function test_myMethod ($input) {
// Test code here
}阅读有关DocBlocks的更多信息:https://docs.phpdoc.org/
https://stackoverflow.com/questions/10725035
复制相似问题