From 56533afda24f17165cb861ca7b9de1cdd50777ea Mon Sep 17 00:00:00 2001 From: Rachel Goldfinger Date: Thu, 29 Jan 2026 11:46:43 -0800 Subject: [PATCH] This test was designed to verify compatibility with older PHP versions where "readonly" was not a reserved keyword. Since "readonly" is now reserved in PHP 8.2+, this test is no longer necessary. PiperOrigin-RevId: 862833056 --- php/tests/PreviouslyGeneratedClassTest.php | 30 ---------------------- 1 file changed, 30 deletions(-) delete mode 100644 php/tests/PreviouslyGeneratedClassTest.php diff --git a/php/tests/PreviouslyGeneratedClassTest.php b/php/tests/PreviouslyGeneratedClassTest.php deleted file mode 100644 index 8c77229a39cd4..0000000000000 --- a/php/tests/PreviouslyGeneratedClassTest.php +++ /dev/null @@ -1,30 +0,0 @@ -=')) { - $this->markTestSkipped('readonly is reserved in PHP >= 8.2'); - } - - // For older versions of PHP, verify that we can reference the - // original class name. - eval(' - $m = new \Previous\readonly(); - $this->assertTrue(true); - '); - - // If execution reaches this line, it means no exception was thrown. - // This assertion prevents PHPUnit from marking the test as risky. - $this->assertTrue(true); - } -}