[wp-trac] [WordPress Trac] #17749: Faster and phpunit runner-compatible unit tests

WordPress Trac noreply at wordpress.org
Thu Feb 28 14:18:36 UTC 2013


#17749: Faster and phpunit runner-compatible unit tests
------------------------------+-------------------------
 Reporter:  nbachiyski        |       Owner:  nbachiyski
     Type:  feature request   |      Status:  closed
 Priority:  normal            |   Milestone:  3.3
Component:  Unit Tests        |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+-------------------------

Comment (by nbachiyski):

 dd32, you're right on both points. I will open a ticket and I will fix
 the local `$wp_version` usage.

 For context on what's breaking, it's in the ticket description above:

 > WordPress is loaded in a function call (that's how phpunit loads tests),
 so some variables need to be explictly initialized as globals

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17749#comment:42>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list