Changeset 36854 for trunk/tests/phpunit/includes/testcase.php
- Timestamp:
- 03/05/2016 07:47:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase.php
r36721 r36854 4 4 require_once dirname( __FILE__ ) . '/trac.php'; 5 5 6 /** 7 * Defines a basic fixture to run multiple tests. 8 * 9 * Resets the state of the WordPress installation before and after every test. 10 * 11 * Includes utility functions and assertions useful for testing WordPress. 12 * 13 * All WordPress unit tests should inherit from this class. 14 */ 6 15 class WP_UnitTestCase extends PHPUnit_Framework_TestCase { 7 16 … … 125 134 } 126 135 136 /** 137 * After a test method runs, reset any state in WordPress the test method might have changed. 138 */ 127 139 function tearDown() { 128 140 global $wpdb, $wp_query, $wp, $post;
Note: See TracChangeset
for help on using the changeset viewer.