[wp-trac] [WordPress Trac] #29123: Undefined index within testcase.php _restore_hooks()

WordPress Trac noreply at wordpress.org
Tue Aug 5 22:32:12 UTC 2014


#29123: Undefined index within testcase.php _restore_hooks()
------------------------------+------------------------------
 Reporter:  kevinlangleyjr    |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+------------------------------
Description changed by SergeyBiryukov:

Old description:

> Due to the change made here,
> https://core.trac.wordpress.org/changeset/29251 to backup and restore
> these global variables, all unit tests are failing for me with  {{{
> Undefined index: merged_filters }}}. By adding a check on line 101 to
> check if the value exists within the {{{ self::$hooks_saved }}} would
> prevent this error from occurring.
>
> Here is an example of the phpunit output there. https://travis-
> ci.org/voceconnect/thermal-api/jobs/31176473

New description:

 Due to the change made here, [29251] to backup and restore these global
 variables, all unit tests are failing for me with  {{{ Undefined index:
 merged_filters }}}. By adding a check on line 101 to check if the value
 exists within the {{{ self::$hooks_saved }}} would prevent this error from
 occurring.

 Here is an example of the phpunit output there. https://travis-
 ci.org/voceconnect/thermal-api/jobs/31176473

--

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


More information about the wp-trac mailing list