You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A timeout facility will be added to unit tests. When a test runs longer
than the time span defined by the timeout facility, the test will be
marked as timeouted.
Rationale
Integration tests that test certain system parts such as an LDAP server
might want to test not only that accessing the server works but also
that a query succeeds in a certain time.
Functionality
A test can be annotated with the @limit annotation as follows:
Minimal overhead for checking the existance of the @limit annotation.
Dependencies
n/a
Related documents
xp-framework/rfc Add annotations for Unittest API #32 - This is where the annotation was originally suggested,
but later on decided not to be implemented (see comments). It had
a different meaning there, though.
Based on discussion with the PHP-Dev team and Frank Kleine of
Schlund+Partner, we decided to name the annotation @limit which
is a more generic name for this and may be enhanced in the future
to support @limit(memory= ...) etc.
Scope of Change
A timeout facility will be added to unit tests. When a test runs longer
than the time span defined by the timeout facility, the test will be
marked as timeouted.
Rationale
Integration tests that test certain system parts such as an LDAP server
might want to test not only that accessing the server works but also
that a query succeeds in a certain time.
Functionality
A test can be annotated with the @limit annotation as follows:
Test failure message:
Security considerations
n/a
Speed impact
Minimal overhead for checking the existance of the @limit annotation.
Dependencies
n/a
Related documents
but later on decided not to be implemented (see comments). It had
a different meaning there, though.
Patch implementing this RFC.
Patch for XP framework unittest. The author is fully
aware of the existance of the usleep() function but uses Windows
at home:)
Verifies the limit functionality works
The text was updated successfully, but these errors were encountered: