public static function setUpBeforeClass() { ob_start(); // create instance of WPSEO_Twitter class self::$class_instance = new WPSEO_Twitter(); // clean output which was outputted by WPSEO_Twitter constructor ob_end_clean(); }
public static function setUpBeforeClass() { ob_start(); // create instance of WPSEO_Twitter class require 'framework/class-expose-wpseo-twitter.php'; self::$class_instance = new Expose_WPSEO_Twitter(); WPSEO_Frontend::get_instance()->reset(); // clean output which was outputted by WPSEO_Twitter constructor ob_end_clean(); }