diff --git a/tests/test-block-editor.php b/tests/test-block-editor.php
index ee6c493a5e3e5152078a1f30a548fc30fccea772..21ab5d8590bacaf311fbee569f2bd609d01e381f 100644
--- a/tests/test-block-editor.php
+++ b/tests/test-block-editor.php
@@ -1,4 +1,4 @@
-<?php
+<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
 /**
  * Test block-editor features.
  *
@@ -23,15 +23,18 @@ class TestBlockEditor extends WP_UnitTestCase {
 	 * @covers ::action_rest_api_init()
 	 */
 	public function test_action_rest_api_init() {
+		// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
 		global $wp_meta_keys, $wp_rest_server;
 		$wp_meta_keys   = null;
 		$wp_rest_server = null;
+		// phpcs:enable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
 
 		$object_type    = 'post';
 		$object_subtype = 'post';
 
 		// Prevent `_doing_it_wrong()` notice from `register_rest_route()`.
 		remove_all_actions( 'rest_api_init' );
+		// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
 		do_action( 'rest_api_init' );
 
 		$this->assertEmpty(
@@ -92,7 +95,7 @@ class TestBlockEditor extends WP_UnitTestCase {
 		$request = new WP_REST_Request();
 		$request->set_param( 'id', $post_id );
 
-		_set_cron_array( [] );
+		_set_cron_array( array() );
 
 		$response = Block_Editor::get_instance()->rest_api_schedule_purge( $request );
 		$this->assertTrue(
@@ -132,7 +135,7 @@ class TestBlockEditor extends WP_UnitTestCase {
 		$request->set_param( 'id', $post_id );
 		$request->set_param( 'limit_override', $limit_override );
 
-		_set_cron_array( [] );
+		_set_cron_array( array() );
 
 		$response = Block_Editor::get_instance()->rest_api_schedule_purge( $request );
 		$this->assertTrue(
diff --git a/tests/test-hooks.php b/tests/test-hooks.php
index 920c9f602fbf8cc297c49a5a17318ca0c275609d..0b500cccb1372e262e0f57b24498d327a88fa828 100755
--- a/tests/test-hooks.php
+++ b/tests/test-hooks.php
@@ -1,4 +1,4 @@
-<?php
+<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
 /**
  * Test WP hooks.
  *
diff --git a/tests/test-misc.php b/tests/test-misc.php
index fcec10ea665d3d8f6bcc070fb7c3f89a8875a156..134ad642437d4748323019bb880694903a195795 100755
--- a/tests/test-misc.php
+++ b/tests/test-misc.php
@@ -1,4 +1,4 @@
-<?php
+<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
 /**
  * Test miscellaneous methods.
  *
diff --git a/tests/test-purges.php b/tests/test-purges.php
index 234dd5e5f334473be990ac5b93489041e5838497..bc45a5661e2aab40138b3406336c5d0e6b2b30e2 100755
--- a/tests/test-purges.php
+++ b/tests/test-purges.php
@@ -1,4 +1,4 @@
-<?php
+<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
 /**
  * Test purge methods.
  *
diff --git a/tests/test-ui.php b/tests/test-ui.php
index f6f79ee286719f5c233832c2c4568ea727e0984b..7fdbb05bbee3883513afb5df65e5ef50b86e7ed5 100755
--- a/tests/test-ui.php
+++ b/tests/test-ui.php
@@ -1,4 +1,4 @@
-<?php
+<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
 /**
  * Test UI methods.
  *