[wp-trac] [WordPress Trac] #25282: Unit Tests should run in Debug mode
WordPress Trac
noreply at wordpress.org
Thu Sep 12 18:37:01 UTC 2013
#25282: Unit Tests should run in Debug mode
----------------------------+--------------------
Reporter: wonderboymusic | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.7
Component: Unit Tests | Version: trunk
Severity: normal | Resolution:
Keywords: |
----------------------------+--------------------
Comment (by nacin):
In [changeset:"25408"]:
{{{
#!CommitTicketReference repository="" revision="25408"
Test framework: Introduce the annotation @expectedDeprecated, modeled
after PHPUnit's @expectedException.
It works for both functions and arguments (using the value of the first
argument passed to _deprecated_function() or _deprecated_argument(), which
is typically the function name). It asserts both ways:
* If specified, those deprecated notices must be caught, or the test
fails.
* If not specified, any other deprecated notices cause the test to fail.
Works regardless of WP_DEBUG.
see #25282.
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25282#comment:51>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list