I have some test cases that can go into an infinite loop upon failure. Is there a built-in way to set a test timeout duration with PHPUnit?
If not, what would be the most unobtrusive way of adding this feature to a test case?
Maybe you can use the PerformanceTestCase you can set a setMaxRunningTime() with it for a test.
You can use the strict mode to set time limits: