Changeset 26252 for trunk/tests/phpunit/tests/option/blogOption.php
- Timestamp:
- 11/18/2013 08:44:34 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/blogOption.php
r25397 r26252 6 6 */ 7 7 class Tests_Option_BlogOption extends WP_UnitTestCase { 8 protected $suppress = false; 9 8 10 function setUp() { 11 global $wpdb; 9 12 parent::setUp(); 13 $this->suppress = $wpdb->suppress_errors(); 10 14 11 15 $_SERVER['REMOTE_ADDR'] = null; 16 } 17 18 function tearDown() { 19 global $wpdb; 20 parent::tearDown(); 21 $wpdb->suppress_errors( $this->suppress ); 12 22 } 13 23
Note: See TracChangeset
for help on using the changeset viewer.