1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sun, 19 May 2024 10:36:58 +0200
Subject: Make provider functions static (PHPUnit 11 Fix)
Bug-Debian: https://bugs.debian.org/1070524
---
tests/SpdxLicensesTest.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/SpdxLicensesTest.php b/tests/SpdxLicensesTest.php
index d42419b..80df4ff 100644
--- a/tests/SpdxLicensesTest.php
+++ b/tests/SpdxLicensesTest.php
@@ -236,7 +236,7 @@ class SpdxLicensesTest extends TestCase
/**
* @return array[]
*/
- public function provideResourceFiles()
+ public static function provideResourceFiles()
{
return array(
array(SpdxLicenses::LICENSES_FILE),
@@ -247,7 +247,7 @@ class SpdxLicensesTest extends TestCase
/**
* @return array<int, string|string[]>
*/
- public function provideValidLicenses()
+ public static function provideValidLicenses()
{
$contents = file_get_contents(SpdxLicenses::getResourcesDir() . '/' . SpdxLicenses::LICENSES_FILE);
if (false === $contents) {
@@ -289,7 +289,7 @@ class SpdxLicensesTest extends TestCase
/**
* @return array[]
*/
- public function provideInvalidLicenses()
+ public static function provideInvalidLicenses()
{
return array(
array(''),
@@ -318,7 +318,7 @@ class SpdxLicensesTest extends TestCase
/**
* @return array[]
*/
- public function provideInvalidArgument()
+ public static function provideInvalidArgument()
{
return array(
array(null),
|