Skip to content

Commit

Permalink
Generate stubs for WordPress Tests 6.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Apr 2, 2024
1 parent d41aadc commit 7d6649a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.4.3
6.5.0
24 changes: 19 additions & 5 deletions wordpress-tests-stubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -1216,6 +1216,11 @@ public function stream_metadata($path, $option, $value)
* Creates a directory.
*
* @see streamWrapper::mkdir
*
* @param string $path Directory which should be created.
* @param int $mode The value passed to mkdir().
* @param int $options A bitwise mask of values, such as STREAM_MKDIR_RECURSIVE.
* @return bool True on success, false on failure.
*/
public function mkdir($path, $mode, $options)
{
Expand Down Expand Up @@ -3568,7 +3573,7 @@ public static function forcingKnownBugs()
{
}
}
/*
/**
* Helper class for testing code that involves actions and filters.
*
* Typical use:
Expand Down Expand Up @@ -3725,7 +3730,7 @@ public function __call($name, $arguments)
{
}
}
/*
/**
* A simple manually-instrumented profiler for WordPress.
*
* This records basic execution time, and a summary of the actions and SQL queries run within each block.
Expand Down Expand Up @@ -3976,6 +3981,15 @@ function _wp_rest_server_class_filter()
function _unhook_block_registration()
{
}
/**
* After the init action has been run once, trying to re-register font collections can cause
* errors. To avoid this, unhook the font registration functions.
*
* @since 6.5.0
*/
function _unhook_font_registration()
{
}
/**
* Helper method to return the global phpmailer instance defined in the bootstrap
*
Expand Down Expand Up @@ -4741,16 +4755,16 @@ function tests_make_plural_form_function($nplurals, $expression)
* Returns a string of the required length containing random characters. Note that
* the maximum possible string length is 32.
*
* @param int $len Optional. The required length. Default 32.
* @param int $length Optional. The required length. Default 32.
* @return string The string.
*/
function rand_str($len = 32)
function rand_str($length = 32)
{
}
/**
* Returns a string of the required length containing random characters.
*
* @param int $len The required length.
* @param int $length The required length.
* @return string The string.
*/
function rand_long_str($length)
Expand Down

0 comments on commit 7d6649a

Please sign in to comment.