[wp-trac] [WordPress Trac] #40538: Fix or remove useless PHPUnit tests

WordPress Trac noreply at wordpress.org
Sun Apr 23 01:11:26 UTC 2017


#40538: Fix or remove useless PHPUnit tests
------------------------------+-----------------
 Reporter:  johnbillion       |      Owner:
     Type:  task (blessed)    |     Status:  new
 Priority:  normal            |  Milestone:  4.8
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------
 There are 29 tests in the test suite which don't perform an assertion.
 They should be fixed or removed.

 PHPUnit 6 has switched to being strict about useless tests by default, so
 that gives us an additional reason to address them. In addition, there's
 no reason for core's default PHPUnit configuration to not be strict about
 useless tests so the same behaviour is seen when running older versions of
 PHPUnit.

 Previously: #36016

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


More information about the wp-trac mailing list