"value":"\n <p>As Drupal 11 uses PHPUnit 10, we can now use the <code>#[Test]<\/code> attribute instead of the <code>\/** @test *\/<\/code> annotation for our test methods.<\/p>\n\n<p>For example:<\/p>\n\n<pre><code class=\"php\">\/\/ Before.\n\n\/** @test *\/\npublic function it_returns_the_endpoint()\n\n\/\/ After.\n\n#[Test]\npublic function it_returns_the_endpoint()\n<\/code><\/pre>\n\n<p><a href=\"\/daily\/2024\/04\/04\/php-attributes--coming-soon-to-a-drupal-version-near-you\">Annotations have started to be replaced<\/a> in parts of Drupal since 10.2, so it's nice to be able to do it with tests, too.<\/p>\n\n<p>Which do you prefer?<\/p>\n\n ",
"processed":"\n <p>As Drupal 11 uses PHPUnit 10, we can now use the <code>#[Test]<\/code> attribute instead of the <code>\/** @test *\/<\/code> annotation for our test methods.<\/p>\n\n<p>For example:<\/p>\n\n<pre><code class=\"php\">\/\/ Before.\n\n\/** @test *\/\npublic function it_returns_the_endpoint()\n\n\/\/ After.\n\n#[Test]\npublic function it_returns_the_endpoint()\n<\/code><\/pre>\n\n<p><a href=\"http:\/\/default\/daily\/2024\/04\/04\/php-attributes--coming-soon-to-a-drupal-version-near-you\">Annotations have started to be replaced<\/a> in parts of Drupal since 10.2, so it's nice to be able to do it with tests, too.<\/p>\n\n<p>Which do you prefer?<\/p>\n\n ",