• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress develop tests

WordPress develop tests

WordPress develop tests a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Files / phpunit/includes/utils.php


Lines:

1 to 83 of 83
<?php

// misc help functions and utilities

/* function rand_str() – */

/* function rand_long_str() – */

// strip leading and trailing whitespace from each line in the string
/* function strip_ws() – */

// helper class for testing code that involves actions and filters
// typical use:
// $ma = new MockAction();
// add_action('foo', array(&$ma, 'action'));
/* class MockAction */
/* function MockAction::__construct() – PHP5 constructor. */
/* function MockAction::reset() – */
/* function MockAction::current_filter() – */
/* function MockAction::action() – */
/* function MockAction::action2() – */
/* function MockAction::filter() – */
/* function MockAction::filter2() – */
/* function MockAction::filter_append() – */
/* function MockAction::filterall() – */
/* function MockAction::get_events() – */
/* function MockAction::get_call_count() – */
/* function MockAction::get_tags() – */
/* function MockAction::get_args() – */

// convert valid xml to an array tree structure
// kinda lame but it works with a default php 4 installation
/* class TestXMLParser */
/* function TestXMLParser::__construct() – PHP5 constructor. */
/* function TestXMLParser::parse() – */
/* function TestXMLParser::start_handler() – */
/* function TestXMLParser::data_handler() – */
/* function TestXMLParser::end_handler() – */

/* function xml_to_array() – */

/* function xml_find() – */

/* function xml_join_atts() – */

/* function xml_array_dumbdown() – */

/* function dmp() – */

/* function dmp_filter() – */

/* function get_echo() – */

// recursively generate some quick assertEquals tests based on an array
/* function gen_tests_array() – */

/* class MockClass */

/* function drop_tables() – Drops all tables from the WordPress database */

/* function print_backtrace() – */

// mask out any input fields matching the given name
/* function mask_input_value() – */

/* function _unregister_post_type() – Removes the post type and its taxonomy associations. */

/* function _unregister_taxonomy() – */

/* function _unregister_post_status() – Unregister a post status. */

/* function _cleanup_query_vars() – */

/* function _clean_term_filters() – */

/* class WpdbExposedMethodsForTesting */
/* function WpdbExposedMethodsForTesting::__construct() – */
/* function WpdbExposedMethodsForTesting::__call() – */

/* function benchmark_pcre_backtracking() – Determine approximate backtrack count when running PCRE. */

/* function test_rest_expand_compact_links() – */
 

 View on GitHub

Called by

    Invoked by

      Calls

      Call hooks

      File name: phpunit/includes/utils.php
      Plugin ref: WordPress develop tests
      Version: 5.3
      Deprecated?: No
      API Letters: I,P,U

      Published: 26th November 2019 | Last updated: 27th November 2019

      Primary Sidebar

      Information

      File name: phpunit/includes/utils.php
      Plugin ref: WordPress develop tests
      Version: 5.3
      Deprecated?: No
      API Letters: I,P,U

      phpunit/includes

      Footer

      WordPress develop tests
      WordPress develop tests
      WordPress develop tests a2z
      WordPress 5.6
      WordPress a2z
      WordPress core a2z
      Genesis Theme Framework a2z
      Jetpack a2z
      WordPress develop tests
      Easy Digital Downloads a2z
      WooCommerce a2z
      Yoast SEO a2z
      WordPress Blocks

      Site:  develop.wp-a2z.org
      © Copyright WordPress develop tests 2014-2021. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins

      • Home
      • Blog
      • Sitemap
      • Sites