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

WordPress Trac noreply at wordpress.org
Mon Aug 11 22:40:04 UTC 2014

#28535: WP Unit Tests should reset hooks after each test
 Reporter:  mnelson4          |       Owner:  wonderboymusic
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  4.0
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:  fixed
 Keywords:  needs-patch       |     Focuses:

Comment (by DJPaul):

 Regarding r29251; the BuddyPress team has noticed that with PHP 5.2, this
 change causes PHP to segfault when running unit tests on classes that have
 a `__destruct` method and a static class property. For the play-by-play,
 read https://buddypress.trac.wordpress.org/ticket/5803#comment:3 onwards.

 This issues seems to only occur in PHP 5.2; we've been testing with
 5.2.17. It seems to be fixed in 5.3+. The PHP bug was originally reported
 at https://bugs.php.net/bug.php?id=51822.

 We've "fixed" our tests by skipping the tests that are triggering this bug
 when they are run in a PHP < 5.3 environment.

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

More information about the wp-trac mailing list