[wp-trac] [WordPress Trac] #11892: replace die() and exit() with a pluggable wp_exit(); function
WordPress Trac
wp-trac at lists.automattic.com
Thu Jan 14 00:51:10 UTC 2010
#11892: replace die() and exit() with a pluggable wp_exit(); function
--------------------------+-------------------------------------------------
Reporter: hakre | Owner: westi
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Unit Tests | Version:
Severity: blocker | Keywords:
--------------------------+-------------------------------------------------
There are multiple occurences of the die() (and perhaps exit()) statement
within the code.
Those can be a blocker in running the testsuite. I suggest to replace
those with a call to a new function called wp_exit(); which is plugable so
that the testsuite can replace it.
Otherwise it's not possible to test code containing those statements. At
least I'm not aware of a method to do so.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11892>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list