Skip to content

Commit

Permalink
Tests: make dataproviders static
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jrfnl committed Sep 10, 2024
1 parent 8e50c7d commit 8e0a60e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/DocsXsd/DocsXsdTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function testXsdValidationPassedWithValidXml($fixtureFile)
*
* @return array<string, array<string, string>>
*/
public function dataValidXsd()
public static function dataValidXsd()
{
return [
'Valid docs example with single standard in the file' => [
Expand Down Expand Up @@ -110,7 +110,7 @@ public function testXsdValidationFailsForInvalidXml($fixtureFile, $expectedStdOu
*
* @return array<string, array<string, string>>
*/
public function dataInvalidXsd()
public static function dataInvalidXsd()
{
return [
'Title attribute too long on <documentation> element' => [
Expand Down

0 comments on commit 8e0a60e

Please sign in to comment.