Changeset 62560 for branches/7.0/tests/phpunit/includes/utils.php
- Timestamp:
- 06/25/2026 10:26:14 AM (2 months ago)
- Location:
- branches/7.0
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/phpunit/includes/utils.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/7.0
-
branches/7.0/tests/phpunit/includes/utils.php
r60703 r62560 433 433 } 434 434 435 function get_echo( $callback, $args = array() ) { 435 /** 436 * Gets the output buffer for invoking the provided callback. 437 * 438 * @param callable $callback Callback. 439 * @param mixed[] $args Arguments. 440 * @return string Captured output. 441 */ 442 function get_echo( callable $callback, array $args = array() ): string { 436 443 ob_start(); 437 444 call_user_func_array( $callback, $args ); 438 return ob_get_clean();445 return (string) ob_get_clean(); 439 446 } 440 447
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)