From 8e0a60e06e0e1d3ef8ec0b7095726ff344ae9251 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Tue, 10 Sep 2024 03:56:29 +0200 Subject: [PATCH] Tests: make dataproviders static As of PHPUnit 10, data providers are (again) expected to be `static` methods. This updates the test suite to respect that. Refs: * sebastianbergmann/phpunit@9caafe2 * sebastianbergmann/phpunit 5100 --- Tests/DocsXsd/DocsXsdTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/DocsXsd/DocsXsdTest.php b/Tests/DocsXsd/DocsXsdTest.php index d978967..5676a1b 100644 --- a/Tests/DocsXsd/DocsXsdTest.php +++ b/Tests/DocsXsd/DocsXsdTest.php @@ -60,7 +60,7 @@ public function testXsdValidationPassedWithValidXml($fixtureFile) * * @return array> */ - public function dataValidXsd() + public static function dataValidXsd() { return [ 'Valid docs example with single standard in the file' => [ @@ -110,7 +110,7 @@ public function testXsdValidationFailsForInvalidXml($fixtureFile, $expectedStdOu * * @return array> */ - public function dataInvalidXsd() + public static function dataInvalidXsd() { return [ 'Title attribute too long on element' => [