[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 02:21:47 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 SergeyBiryukov):

 In [changeset:"49047" 49047]:
 {{{
 #!CommitTicketReference repository="" revision="49047"
 Tests: Require `imagejpeg()` function in some REST API attachments
 controller tests.

 This outputs a proper message if the requirement is not met, instead of an
 obscure failure further in the test.

 These tests rely on multiple resized copies of a test JPEG image being
 generated and available.

 Follow-up to [49010], [49024], [49025], [49045].

 See #50639, #50640.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50640#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list