Skip to content

Commit e368b26

Browse files
committed
Add output buffer to avoid unexpected output
1 parent 7dc5676 commit e368b26

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/tests/TestBehatTags.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,12 @@ public function test_behat_tags_db_version(): void {
198198
$db_type = getenv( 'WP_CLI_TEST_DBTYPE' );
199199

200200
$behat_tags = dirname( dirname( __DIR__ ) ) . '/utils/behat-tags.php';
201+
202+
// Just to get the get_db_version() function.
203+
ob_start();
201204
require $behat_tags;
205+
ob_end_clean();
206+
202207
// @phpstan-ignore-next-line
203208
$db_version = get_db_version();
204209
$minimum_db_version = $db_version . '.1';

0 commit comments

Comments
 (0)