php-src/tests
Nikita Popov e760d94f4b Fix timeout tests
After taking a more detailed look at our commonly failing timeout
tests... turns out that most of them are useless as written and
don't test what they're supposed to.

This PR has a couple of changes:

* Tests for timeout in while/for/foreach should just have the loop
as an infinite loop. Calling into something like busy_wait means
that we just end up always testing whatever busy_wait does.
* Tests for timeouts in calls need to be based on something like
sleep, otherwise we'd have to introduce a loop, and we'd end up
testing timeout of the looping structure instead. Using sleep only
works on Windows, because that's the only system where sleep counts
towards the timeout. As such, many of those tests are now Windows only.
* Removed some tests where I don't see a good way to test what they're
supposed to test. E.g. how can we test a timeout in eval() specifically?

The shutdown function tests are marked as XFAIL, as we are currently
missing a timeout check in call_user_function. I believe that's a
legitimate issue.

Closes GH-4969.
2019-12-05 11:19:23 +01:00
..
basic Fix timeout tests 2019-12-05 11:19:23 +01:00
classes Return error_zval form get_property_ptr_ptr on exception 2019-10-10 15:14:04 +02:00
func Cleanup of remaining E_STRICT in tests 2019-07-23 11:27:23 +02:00
lang Throw notice on array access on illegal type 2019-07-10 12:02:14 +02:00
output Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
run-test This test needs to log to stdout 2018-10-31 10:43:45 -07:00
security Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
strings Deprecate alternative array access syntax 2019-07-19 10:06:10 +02:00
quicktester.inc Sync leading and final newlines in source code files 2018-10-14 12:56:38 +02:00