#59601 closed defect (bug) (fixed)
Infinte loop in Spy_REST_Server
Reported by: | xknown | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 6.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | has-patch needs-testing |
Focuses: | Cc: |
Description
The Spy_REST_Server
class is used to mock the REST API related unit tests. If for some random reason an undefined method is used on the rest_get_server()
object (i.e. rest_get_server()->does_not_exist()
), this results in a OOM error when running the WP unit tests.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
This looks good to me. Thanks @xknown. I'd like to get a second opinion but this looks good to commit whenever it's ready.