I'd like to run my tests in separate processes. Because of this, I would like to annotate my tests with "@runTestsInSeparateProcesses". However, I have never annotated Phpunit tests before and I haven't been able to find a good description of where to actually put the annotations. I've seen what the different annotations do, just not where to put them. Could someone please give me an example?
Thanks!
Annotations are applied to your test-case's docblock:
/**
* Short Description
*
* @param string $input The test input
*
* @return bool The result
*
* @runTestsInSeparateProcesses
*/
public function test_myMethod ($input) {
// Test code here
}
Read more about DocBlocks: https://docs.phpdoc.org/