[wp-trac] [WordPress Trac] #40423: Introduce assertNotIXRError() for clearer XMLRPC test failure messages
WordPress Trac
noreply at wordpress.org
Wed Apr 12 14:33:36 UTC 2017
#40423: Introduce assertNotIXRError() for clearer XMLRPC test failure messages
------------------------------+-------------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.8
Component: Build/Test Tools | Version:
Severity: normal | Keywords: needs-patch
Focuses: |
------------------------------+-------------------------
`$this->assertNotInstanceOf( 'IXR_Error', $result )` is used in many of
the XMLRPC tests. Unfortunately this means that when an `IXR_Error` ''is''
returned, its error message isn't exposed.
For `WP_Error` handling we have the `assertNotWPError()` method which
helpfully uses the error message in the failure message when a `WP_Error`
is returned. The same pattern should be introduced for IXR errors.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40423>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list