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

WordPress Trac noreply at wordpress.org
Mon Feb 29 20:34:50 UTC 2016


#36016: Fix or remove useless PHPUnit tests
------------------------------+-----------------------------
 Reporter:  boonebgorges      |       Owner:
     Type:  task (blessed)    |      Status:  new
 Priority:  normal            |   Milestone:  Future Release
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+-----------------------------

Comment (by boonebgorges):

 In [changeset:"36779"]:
 {{{
 #!CommitTicketReference repository="" revision="36779"
 Put an assertion in `test_nonexistent_array()` test.

 The point of the test is to demonstrate that PHP doesn't throw a notice
 when
 calling `unset()` on an undefined array key. To placate PHPUnit's useless
 test
 detection, we add a redundant assertion.

 Introduced in [25240].

 See #36016.
 }}}

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


More information about the wp-trac mailing list