[wp-trac] [WordPress Trac] #28535: WP Unit Tests should reset hooks after each test

WordPress Trac noreply at wordpress.org
Sun Jun 15 17:25:07 UTC 2014


#28535: WP Unit Tests should reset hooks after each test
------------------------------+------------------------------
 Reporter:  mnelson4          |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  needs-patch       |     Focuses:
------------------------------+------------------------------
Changes (by jorbin):

 * keywords:   => needs-patch


Comment:

 This seems like a really good idea to me. We can potentially use the
 phpunit option
 [http://phpunit.de/manual/3.7/en/appendixes.annotations.html#appendixes.annotations.backupGlobals
 backupGlobals] , but I know @nacin mentioned to me once that we tried this
 and it caused issues.  I'm not sure if that is still the case. It's worth
 investigating.

 If this can get a good patch soon, I think it would make sense to include
 this in 4.0

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


More information about the wp-trac mailing list