Lines:
1 to 86 of 86
<?php // Misc help functions and utilities. /* function rand_str() – */ /* function rand_long_str() – */ /* 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() – */