[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 Jul 12 21:18:18 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:  Awaiting Review
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch close   |     Focuses:
------------------------------+------------------------------

Comment (by ayeshrajans):

 If the test infrastructure changes in the future and a platform
 requirement such as gd gets accidentally gets removed, the tests should
 fail.

 If we were to make sure the test platform meets all necessary
 requirements, I think it should be better done at composer.json file
 `require-dev` section (for example with `ext-dev: *`, `ext-mbstring: *`).

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


More information about the wp-trac mailing list