[wp-trac] [WordPress Trac] #28486: Base unit test does not have setExpectedDeprecated method

WordPress Trac noreply at wordpress.org
Fri Jan 30 16:47:46 UTC 2015


#28486: Base unit test does not have setExpectedDeprecated method
------------------------------+---------------------------
 Reporter:  rmccue            |       Owner:  boonebgorges
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  4.2
Component:  Build/Test Tools  |     Version:  3.7
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch         |     Focuses:
------------------------------+---------------------------
Changes (by boonebgorges):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"31306"]:
 {{{
 #!CommitTicketReference repository="" revision="31306"
 Introduce `setExpectedDeprecated()` and `setExpectedIncorrectUsage()`
 methods to `WP_UnitTestCase.

 These methods provide a procedural alternative to the
 `@expectedDeprecated`
 and `@expectedIncorrectUsage` test annotations, and parallel PHPUnit's
 native
 `setExpectedException()`.

 Props prasoon2211, jdgrimes.
 Fixes #28486.
 }}}

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


More information about the wp-trac mailing list