From aedbb4b32771bd98b55887acbc88ca7c390cebbf Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Fri, 7 Apr 2023 15:39:49 +0100 Subject: [PATCH] Make phpunit provider methods static --- tests/Unit/HelpersTest.php | 2 +- tests/Unit/TagsTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Unit/HelpersTest.php b/tests/Unit/HelpersTest.php index 5ad6affd..9c3af608 100644 --- a/tests/Unit/HelpersTest.php +++ b/tests/Unit/HelpersTest.php @@ -65,7 +65,7 @@ class HelpersTest extends TestCase $this->assertEquals($expected, prettyPrintJson($json)); } - public function urlProvider(): array + public static function urlProvider(): array { return [ ['https://example.org/', 'https://example.org'], diff --git a/tests/Unit/TagsTest.php b/tests/Unit/TagsTest.php index 87c3ef9f..3592024a 100644 --- a/tests/Unit/TagsTest.php +++ b/tests/Unit/TagsTest.php @@ -42,7 +42,7 @@ class TagsTest extends TestCase $this->assertSame($expected, Tag::normalize($input)); } - public function tagsProvider(): array + public static function tagsProvider(): array { return [ ['test', 'test'],