Skip to content

Commit 7d6649a

Browse files
committed
Generate stubs for WordPress Tests 6.5.0
1 parent d41aadc commit 7d6649a

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.4.3
1+
6.5.0

wordpress-tests-stubs.php

+19-5
Original file line numberDiff line numberDiff line change
@@ -1216,6 +1216,11 @@ public function stream_metadata($path, $option, $value)
12161216
* Creates a directory.
12171217
*
12181218
* @see streamWrapper::mkdir
1219+
*
1220+
* @param string $path Directory which should be created.
1221+
* @param int $mode The value passed to mkdir().
1222+
* @param int $options A bitwise mask of values, such as STREAM_MKDIR_RECURSIVE.
1223+
* @return bool True on success, false on failure.
12191224
*/
12201225
public function mkdir($path, $mode, $options)
12211226
{
@@ -3568,7 +3573,7 @@ public static function forcingKnownBugs()
35683573
{
35693574
}
35703575
}
3571-
/*
3576+
/**
35723577
* Helper class for testing code that involves actions and filters.
35733578
*
35743579
* Typical use:
@@ -3725,7 +3730,7 @@ public function __call($name, $arguments)
37253730
{
37263731
}
37273732
}
3728-
/*
3733+
/**
37293734
* A simple manually-instrumented profiler for WordPress.
37303735
*
37313736
* This records basic execution time, and a summary of the actions and SQL queries run within each block.
@@ -3976,6 +3981,15 @@ function _wp_rest_server_class_filter()
39763981
function _unhook_block_registration()
39773982
{
39783983
}
3984+
/**
3985+
* After the init action has been run once, trying to re-register font collections can cause
3986+
* errors. To avoid this, unhook the font registration functions.
3987+
*
3988+
* @since 6.5.0
3989+
*/
3990+
function _unhook_font_registration()
3991+
{
3992+
}
39793993
/**
39803994
* Helper method to return the global phpmailer instance defined in the bootstrap
39813995
*
@@ -4741,16 +4755,16 @@ function tests_make_plural_form_function($nplurals, $expression)
47414755
* Returns a string of the required length containing random characters. Note that
47424756
* the maximum possible string length is 32.
47434757
*
4744-
* @param int $len Optional. The required length. Default 32.
4758+
* @param int $length Optional. The required length. Default 32.
47454759
* @return string The string.
47464760
*/
4747-
function rand_str($len = 32)
4761+
function rand_str($length = 32)
47484762
{
47494763
}
47504764
/**
47514765
* Returns a string of the required length containing random characters.
47524766
*
4753-
* @param int $len The required length.
4767+
* @param int $length The required length.
47544768
* @return string The string.
47554769
*/
47564770
function rand_long_str($length)

0 commit comments

Comments
 (0)