Make WordPress Core


Ignore:
Timestamp:
01/05/2020 03:31:10 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve documentation for tests/phpunit/includes/testcase-ajax.php.

Props andizer, SergeyBiryukov.
Fixes #47568.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/exceptions.php

    r46586 r47041  
    66
    77/**
    8  * General exception for wp_die()
     8 * General exception for wp_die().
    99 */
    1010class WPDieException extends Exception {}
    1111
    1212/**
    13  * Exception for cases of wp_die(), for ajax tests.
    14  * This means there was an error (no output, and a call to wp_die)
     13 * Exception for cases of wp_die(), for Ajax tests.
     14 *
     15 * This means there was an error (no output, and a call to wp_die).
    1516 *
    1617 * @package    WordPress
     
    2122
    2223/**
    23  * Exception for cases of wp_die(), for ajax tests.
    24  * This means execution of the ajax function should be halted, but the unit
    25  * test can continue.  The function finished normally and there was not an
    26  * error (output happened, but wp_die was called to end execution)  This is
    27  * used with WP_Ajax_Response::send
     24 * Exception for cases of wp_die(), for Ajax tests.
     25 *
     26 * This means the execution of the Ajax function should be halted, but the unit test
     27 * can continue. The function finished normally and there was no error (output happened,
     28 * but wp_die was called to end execution). This is used with WP_Ajax_Response::send().
    2829 *
    2930 * @package    WordPress
Note: See TracChangeset for help on using the changeset viewer.