[wp-trac] [WordPress Trac] #38256: Make use of PHPUnit's @requires notation

WordPress Trac noreply at wordpress.org
Sat Oct 8 01:12:20 UTC 2016


#38256: Make use of PHPUnit's @requires notation
------------------------------+-----------------
 Reporter:  johnbillion       |      Owner:
     Type:  enhancement       |     Status:  new
 Priority:  low               |  Milestone:  4.7
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------
 Several unit tests include logic to skip the test if certain extensions or
 functions aren't available. PHPUnit has native support for this
 functionality in the form of `@requires` headers, so it may as well be
 used.

 Docs: https://phpunit.de/manual/current/en/incomplete-and-skipped-
 tests.html#incomplete-and-skipped-tests.skipping-tests-using-requires

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38256>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list