Make WordPress Core

Ticket #44496: 44496.patch

File 44496.patch, 1.1 KB (added by anonymized_8769252, 8 years ago)
  • tests/phpunit/includes/testcase.php

    diff --git tests/phpunit/includes/testcase.php tests/phpunit/includes/testcase.php
    index db3f0b9fb6..619264e3f4 100644
    class WP_UnitTestCase extends PHPUnit_Framework_TestCase { 
    273273        /**
    274274         * Saves the action and filter-related globals so they can be restored later.
    275275         *
    276          * Stores $merged_filters, $wp_actions, $wp_current_filter, and $wp_filter
     276         * Stores $wp_actions, $wp_current_filter, and $wp_filter
    277277         * on a class variable so they can be restored on tearDown() using _restore_hooks().
    278278         *
    279          * @global array $merged_filters
    280279         * @global array $wp_actions
    281280         * @global array $wp_current_filter
    282281         * @global array $wp_filter
    class WP_UnitTestCase extends PHPUnit_Framework_TestCase { 
    297296         * Restores the hook-related globals to their state at setUp()
    298297         * so that future tests aren't affected by hooks set during this last test.
    299298         *
    300          * @global array $merged_filters
    301299         * @global array $wp_actions
    302300         * @global array $wp_current_filter
    303301         * @global array $wp_filter