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() – */