diff --git a/tests/phpunit/tests/db.php b/tests/phpunit/tests/db.php
index c3d43b1fa3..c56a13c805 100644
--- a/tests/phpunit/tests/db.php
+++ b/tests/phpunit/tests/db.php
@@ -379,6 +379,7 @@ function test_prepare_sprintf() {
 
 	/**
 	 * @expectedIncorrectUsage wpdb::prepare
+	 * @requires PHP < 8.0
 	 */
 	function test_prepare_sprintf_invalid_args() {
 		global $wpdb;
@@ -401,6 +402,7 @@ function test_prepare_vsprintf() {
 
 	/**
 	 * @expectedIncorrectUsage wpdb::prepare
+	 * @requires PHP < 8.0
 	 */
 	function test_prepare_vsprintf_invalid_args() {
 		global $wpdb;
@@ -418,6 +420,7 @@ function test_prepare_vsprintf_invalid_args() {
 	 * @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;
diff --git a/tests/phpunit/tests/functions/deprecated.php b/tests/phpunit/tests/functions/deprecated.php
index 758ab0228a..fb79b90afb 100644
--- a/tests/phpunit/tests/functions/deprecated.php
+++ b/tests/phpunit/tests/functions/deprecated.php
@@ -140,6 +140,7 @@ protected function was_deprecated( $type, $name ) {
 	 *
 	 * @ticket 6821
 	 * @expectedDeprecated wp_save_image_file
+	 * @requires extension gd
 	 */
 	public function test_wp_save_image_file_deprecated_with_gd_resource() {
 		if ( ! function_exists( 'imagejpeg' ) ) {
@@ -163,6 +164,7 @@ public function test_wp_save_image_file_deprecated_with_gd_resource() {
 	 * Tests that wp_save_image_file() doesn't have a deprecated argument when passed a WP_Image_Editor.
 	 *
 	 * @ticket 6821
+	 * @requires extension gd
 	 */
 	public function test_wp_save_image_file_not_deprecated_with_wp_image_editor() {
 		if ( ! function_exists( 'imagejpeg' ) ) {
diff --git a/tests/phpunit/tests/image/functions.php b/tests/phpunit/tests/image/functions.php
index 4a7713d52b..5b03d6cbf4 100644
--- a/tests/phpunit/tests/image/functions.php
+++ b/tests/phpunit/tests/image/functions.php
@@ -301,6 +301,9 @@ public function test_load_directory() {
 		}
 	}
 
+	/**
+	 * @requires extension gd
+	 */
 	public function test_wp_crop_image_file() {
 		if ( ! function_exists( 'imagejpeg' ) ) {
 			$this->fail( 'jpeg support unavailable' );
@@ -325,6 +328,10 @@ public function test_wp_crop_image_file() {
 		unlink( $file );
 	}
 
+	/**
+	 * @requires extension gd
+	 * @requires extension openssl
+	 */
 	public function test_wp_crop_image_url() {
 		if ( ! function_exists( 'imagejpeg' ) ) {
 			$this->fail( 'jpeg support unavailable' );
diff --git a/tests/phpunit/tests/image/intermediateSize.php b/tests/phpunit/tests/image/intermediateSize.php
index c7d8307afc..0ad6c1b6ae 100644
--- a/tests/phpunit/tests/image/intermediateSize.php
+++ b/tests/phpunit/tests/image/intermediateSize.php
@@ -28,6 +28,9 @@ function test_make_intermediate_size_no_size() {
 		$this->assertFalse( $image );
 	}
 
+	/**
+	 * @requires extension gd
+	 */
 	function test_make_intermediate_size_width() {
 		if ( ! function_exists( 'imagejpeg' ) ) {
 			$this->fail( 'jpeg support unavailable' );
@@ -38,6 +41,9 @@ function test_make_intermediate_size_width() {
 		$this->assertInternalType( 'array', $image );
 	}
 
+	/**
+	 * @requires extension gd
+	 */
 	function test_make_intermediate_size_height() {
 		if ( ! function_exists( 'imagejpeg' ) ) {
 			$this->fail( 'jpeg support unavailable' );
@@ -48,6 +54,9 @@ function test_make_intermediate_size_height() {
 		$this->assertInternalType( 'array', $image );
 	}
 
+	/**
+	 * @requires extension gd
+	 */
 	function test_make_intermediate_size_successful() {
 		if ( ! function_exists( 'imagejpeg' ) ) {
 			$this->fail( 'jpeg support unavailable' );
diff --git a/tests/phpunit/tests/post/attachments.php b/tests/phpunit/tests/post/attachments.php
index 8acb0b0068..ad0ffe532c 100644
--- a/tests/phpunit/tests/post/attachments.php
+++ b/tests/phpunit/tests/post/attachments.php
@@ -54,6 +54,9 @@ function test_insert_image_no_thumb() {
 		$this->assertEquals( 50, $downsize[2] );
 	}
 
+	/**
+	 * @requires extension gd
+	 */
 	function test_insert_image_thumb_only() {
 		if ( ! function_exists( 'imagejpeg' ) ) {
 			$this->fail( 'jpeg support unavailable' );
@@ -106,6 +109,9 @@ function test_insert_image_thumb_only() {
 		$this->assertEquals( 300, $downsize[2] );
 	}
 
+	/**
+	 * @requires extension gd
+	 */
 	function test_insert_image_medium_sizes() {
 		if ( ! function_exists( 'imagejpeg' ) ) {
 			$this->fail( 'jpeg support unavailable' );
@@ -164,7 +170,9 @@ function test_insert_image_medium_sizes() {
 		$this->assertEquals( 1024, $downsize[2] );
 	}
 
-
+	/**
+	 * @requires extension gd
+	 */
 	function test_insert_image_delete() {
 		if ( ! function_exists( 'imagejpeg' ) ) {
 			$this->fail( 'jpeg support unavailable' );
