Make WordPress Core

Changeset 833 in tests for trunk/wp-testlib/exceptions.php


Ignore:
Timestamp:
07/01/2012 06:30:34 PM (14 years ago)
Author:
kurtpayne
Message:

Port AJAX tests to new test runner. Fixes #51 and #46. props duck_.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-testlib/exceptions.php

    r760 r833  
    44   
    55}
     6
     7/**
     8 * Exception for cases of wp_die()
     9 * This means there was an error (no output, and a call to wp_die)
     10 *
     11 * @package    WordPress
     12 * @subpackage Unit Tests
     13 * @since      3.4.0
     14 */
     15class WPAjaxDieStopException extends Exception {}
     16
     17/**
     18 * Exception for cases of wp_die()
     19 * This means execution of the ajax function should be halted, but the unit
     20 * test can continue.  The function finished normally and there was not an
     21 * error (output happened, but wp_die was called to end execution)  This is
     22 * used with WP_Ajax_Response::send
     23 *
     24 * @package    WordPress
     25 * @subpackage Unit Tests
     26 * @since      3.4.0
     27 */
     28class WPAjaxDieContinueException extends Exception {}
Note: See TracChangeset for help on using the changeset viewer.