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?
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.