views:

25

answers:

1

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?

A: 

Maybe you can use the PerformanceTestCase you can set a setMaxRunningTime() with it for a test.

Skelton