Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | class WP_Tests_Exception extends PHPUnit_Framework_Exception { |
---|
4 | |
---|
5 | } |
---|
6 | |
---|
7 | /** |
---|
8 | * General exception for wp_die() |
---|
9 | */ |
---|
10 | class WPDieException extends Exception {} |
---|
11 | |
---|
12 | /** |
---|
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) |
---|
15 | * |
---|
16 | * @package WordPress |
---|
17 | * @subpackage Unit Tests |
---|
18 | * @since 3.4.0 |
---|
19 | */ |
---|
20 | class WPAjaxDieStopException extends WPDieException {} |
---|
21 | |
---|
22 | /** |
---|
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 |
---|
28 | * |
---|
29 | * @package WordPress |
---|
30 | * @subpackage Unit Tests |
---|
31 | * @since 3.4.0 |
---|
32 | */ |
---|
33 | class WPAjaxDieContinueException extends WPDieException {} |
---|
Note: See
TracBrowser
for help on using the repository browser.