diff --git a/tests/phpunit/tests/db.php b/tests/phpunit/tests/db.php index a715ba822c..ac807d006a 100644 --- a/tests/phpunit/tests/db.php +++ b/tests/phpunit/tests/db.php @@ -379,6 +379,7 @@ class Tests_DB extends WP_UnitTestCase { /** * @expectedIncorrectUsage wpdb::prepare + * @requires PHP < 8.0 */ function test_prepare_sprintf_invalid_args() { global $wpdb; @@ -401,6 +402,7 @@ class Tests_DB extends WP_UnitTestCase { /** * @expectedIncorrectUsage wpdb::prepare + * @requires PHP < 8.0 */ function test_prepare_vsprintf_invalid_args() { global $wpdb; @@ -418,6 +420,7 @@ class Tests_DB extends WP_UnitTestCase { * @ticket 42040 * @dataProvider data_prepare_incorrect_arg_count * @expectedIncorrectUsage wpdb::prepare + * @requires PHP < 8.0 */ public function test_prepare_incorrect_arg_count( $query, $args, $expected ) { global $wpdb;