[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
Sun Sep 20 03:32:02 UTC 2020


#50640: [PHPUnit] Mark test as skipped instead of failing if GD extension is not
availble
------------------------------+---------------------
 Reporter:  ayeshrajans       |       Owner:  (none)
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  5.6
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch php8    |     Focuses:
------------------------------+---------------------

Comment (by SergeyBiryukov):

 In [changeset:"49010" 49010]:
 {{{
 #!CommitTicketReference repository="" revision="49010"
 Tests: Consistently require `imagejpeg()` function in
 `image_make_intermediate_size()` tests.

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

 See #50639, #50640.
 }}}

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


More information about the wp-trac mailing list