Inheritance: extends WP_UnitTestCase
 function setUp()
 {
     parent::setUp();
     if (!extension_loaded('gd')) {
         self::markTestSkipped('Image resizing tests requires GD extension');
     }
 }
 function setUp()
 {
     parent::setUp();
     if (!extension_loaded('gd')) {
         self::markTestSkipped('JPEG conversion tests requires GD extension');
     }
 }
 /**
  * Overload WP_UnitTestcase to ignore deprecated notices
  * thrown by use of wp_title() in Timber
  */
 public function expectedDeprecated()
 {
     if (false !== ($key = array_search('WP_User->id', $this->caught_deprecated))) {
         unset($this->caught_deprecated[$key]);
     }
     parent::expectedDeprecated();
 }
 function setUp()
 {
     global $wpdb;
     $wpdb->query("TRUNCATE TABLE {$wpdb->posts}");
     $wpdb->query("ALTER TABLE {$wpdb->posts} AUTO_INCREMENT = 1");
     parent::setUp();
 }
 function tearDown()
 {
     parent::tearDown();
     if (isset($this->_files) && is_array($this->_files)) {
         foreach ($this->_files as $file) {
             if (file_exists($file)) {
                 unlink($file);
             }
         }
         $this->_files = array();
     }
 }