[wp-trac] [WordPress Trac] #50640: [PHPUnit] Mark test as skipped instead of failing if GD extension is not availble
WordPress Trac
noreply at wordpress.org
Fri Sep 25 10:25:06 UTC 2020
#50640: [PHPUnit] Mark test as skipped instead of failing if GD extension is not
availble
------------------------------+-----------------------------
Reporter: ayeshrajans | Owner: SergeyBiryukov
Type: enhancement | Status: accepted
Priority: normal | Milestone: 5.6
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch php8 | Focuses:
------------------------------+-----------------------------
Comment (by mikeschroder):
Just in case it is helpful, this can be used to check if core supports
JPEG with any of the editors present:
`wp_image_editor_supports( array( 'mime_type' => 'image/jpeg' ) )`
I recognize that it may not fit some of the requirements here.
I'll also echo that I agree that verbose failures should be present if the
requirements are not met for tests.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50640#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list