22
33namespace Tests \Modifiers ;
44
5+ use PHPUnit \Framework \Attributes \Group ;
6+ use PHPUnit \Framework \Attributes \Test ;
57use Statamic \Modifiers \Modify ;
68use Tests \TestCase ;
79
8- /**
9- * @group array
10- */
10+ #[Group('array ' )]
1111class DoesntOverlapTest extends TestCase
1212{
13- /** @test */
13+ #[Test]
1414 public function it_returns_false_if_needle_found_in_array (): void
1515 {
1616 $ haystack = ['a ' , 'b ' , 'c ' ];
@@ -19,7 +19,7 @@ public function it_returns_false_if_needle_found_in_array(): void
1919 $ this ->assertFalse ($ modified );
2020 }
2121
22- /** @test */
22+ #[Test]
2323 public function it_returns_true_if_needle_is_not_found_in_array (): void
2424 {
2525 $ haystack = ['a ' , 'b ' , 'c ' ];
@@ -28,7 +28,7 @@ public function it_returns_true_if_needle_is_not_found_in_array(): void
2828 $ this ->assertTrue ($ modified );
2929 }
3030
31- /** @test */
31+ #[Test]
3232 public function it_returns_true_if_haystack_is_not_an_array (): void
3333 {
3434 $ haystack = 'this is a string ' ;
@@ -37,7 +37,7 @@ public function it_returns_true_if_haystack_is_not_an_array(): void
3737 $ this ->assertTrue ($ modified );
3838 }
3939
40- /** @test */
40+ #[Test]
4141 public function it_returns_false_if_needle_is_an_array_and_is_found_in_array (): void
4242 {
4343 $ haystack = ['a ' , 'b ' , 'c ' ];
@@ -46,7 +46,7 @@ public function it_returns_false_if_needle_is_an_array_and_is_found_in_array():
4646 $ this ->assertFalse ($ modified );
4747 }
4848
49- /** @test */
49+ #[Test]
5050 public function it_returns_false_if_needle_is_an_array_and_some_are_not_found_in_array (): void
5151 {
5252 $ haystack = ['a ' , 'b ' , 'c ' ];
0 commit comments