Make WordPress Core

source: trunk/tests/phpunit/includes/exceptions.php @ 37475

Last change on this file since 37475 was 25002, checked in by nacin, 12 years ago

Initial import of unit-tests repository into develop.svn.wordpress.org.

Imported from https://unit-tests.svn.wordpress.org/trunk@1337

see #24976.

File size: 874 bytes
Line 
1<?php
2
3class WP_Tests_Exception extends PHPUnit_Framework_Exception {
4
5}
6
7/**
8 * General exception for wp_die()
9 */
10class 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 */
20class 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 */
33class WPAjaxDieContinueException extends WPDieException {}
Note: See TracBrowser for help on using the repository browser.