[wp-trac] [WordPress Unit Tests] #142: Ability to easily suppress deprecated warnings

WordPress Trac noreply at wordpress.org
Tue Nov 27 12:46:39 UTC 2012


#142: Ability to easily suppress deprecated warnings
----------------------------+------------------
 Reporter:  scribu          |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:
Component:  Test Framework  |  Resolution:
 Keywords:                  |
----------------------------+------------------
Changes (by convissor):

 * cc: convissor (added)


Comment:

 The deprecation message be part of the tests' expectations.  A recent blog
 post of mine
 ([http://www.analysisandsolutions.com/blog/html/writing-phpunit-tests-for-
 wordpress-plugins-wp-redirect-and-continuing-after-php-errors.htm PHPUnit
 Tests for WordPress Plugins: wp_redirect() and expected PHP errors])
 explains how to have PHP errors/warnings/notices be checked for _and_ have
 the test continue running after the error is raised, which PHPUnit
 normally does not.

 If you like, I can integrate these concepts into the test framework.

-- 
Ticket URL: <http://unit-tests.trac.wordpress.org/ticket/142#comment:1>
WordPress Unit Tests <http://unit-tests.trac.wordpress.org>
My example project


More information about the wp-trac mailing list