/** * Check if plugin has initialised. */ function testPluginInitialization() { $plugin = new Dsearch_replace(); $plugin_name = $plugin->get_plugin_name(); $this->assertFalse(null == $plugin_name); }
/** * Begins execution of the plugin. * * Since everything within the plugin is registered via hooks, * then kicking off the plugin from this point in the file does * not affect the page life cycle. * * @since 1.0.0 */ function run_dsearch_replace() { $plugin = new Dsearch_replace(); $plugin->run(); }