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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
|
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Wed, 31 May 2023 23:43:52 +0200
Subject: Compatibility with recent PHPUnit (10)
---
tests/unit/PseudoTypes/ClassStringTest.php | 2 +-
tests/unit/PseudoTypes/EnumStringTest.php | 2 +-
tests/unit/PseudoTypes/IntegerRangeTest.php | 2 +-
tests/unit/PseudoTypes/InterfaceStringTest.php | 2 +-
tests/unit/PseudoTypes/ListTest.php | 2 +-
tests/unit/PseudoTypes/NonEmptyArrayTest.php | 2 +-
tests/unit/PseudoTypes/NonEmptyListTest.php | 2 +-
tests/unit/PseudoTypes/TraitStringTest.php | 2 +-
tests/unit/TypeResolverTest.php | 16 ++++++++--------
tests/unit/Types/ArrayTest.php | 2 +-
tests/unit/Types/IterableTest.php | 2 +-
11 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/tests/unit/PseudoTypes/ClassStringTest.php b/tests/unit/PseudoTypes/ClassStringTest.php
index d087d38..b48c6ba 100644
--- a/tests/unit/PseudoTypes/ClassStringTest.php
+++ b/tests/unit/PseudoTypes/ClassStringTest.php
@@ -41,7 +41,7 @@ final class ClassStringTest extends TestCase
/**
* @return array<string, array{ClassString, string}>
*/
- public function provideToStringData(): array
+ public static function provideToStringData(): array
{
return [
'generic class string' => [new ClassString(), 'class-string'],
diff --git a/tests/unit/PseudoTypes/EnumStringTest.php b/tests/unit/PseudoTypes/EnumStringTest.php
index d9c1dd6..fe85222 100644
--- a/tests/unit/PseudoTypes/EnumStringTest.php
+++ b/tests/unit/PseudoTypes/EnumStringTest.php
@@ -41,7 +41,7 @@ final class EnumStringTest extends TestCase
/**
* @return array<string, array{EnumString, string}>
*/
- public function provideToStringData(): array
+ public static function provideToStringData(): array
{
return [
'basic' => [new EnumString(), 'enum-string'],
diff --git a/tests/unit/PseudoTypes/IntegerRangeTest.php b/tests/unit/PseudoTypes/IntegerRangeTest.php
index 81a6926..aede5b5 100644
--- a/tests/unit/PseudoTypes/IntegerRangeTest.php
+++ b/tests/unit/PseudoTypes/IntegerRangeTest.php
@@ -40,7 +40,7 @@ final class IntegerRangeTest extends TestCase
/**
* @return array<string, array{IntegerRange, string}>
*/
- public function provideToStringData(): array
+ public static function provideToStringData(): array
{
return [
'simple int range' => [new IntegerRange('-5', '5'), 'int<-5, 5>'],
diff --git a/tests/unit/PseudoTypes/InterfaceStringTest.php b/tests/unit/PseudoTypes/InterfaceStringTest.php
index 83621d8..6a178c3 100644
--- a/tests/unit/PseudoTypes/InterfaceStringTest.php
+++ b/tests/unit/PseudoTypes/InterfaceStringTest.php
@@ -41,7 +41,7 @@ final class InterfaceStringTest extends TestCase
/**
* @return array<string, array{InterfaceString, string}>
*/
- public function provideToStringData(): array
+ public static function provideToStringData(): array
{
return [
'generic interface string' => [new InterfaceString(), 'interface-string'],
diff --git a/tests/unit/PseudoTypes/ListTest.php b/tests/unit/PseudoTypes/ListTest.php
index dbb0cf5..014ec2e 100644
--- a/tests/unit/PseudoTypes/ListTest.php
+++ b/tests/unit/PseudoTypes/ListTest.php
@@ -44,7 +44,7 @@ final class ListTest extends TestCase
/**
* @return array<string, array{List_, string}>
*/
- public function provideToStringData(): array
+ public static function provideToStringData(): array
{
return [
'simple list' => [new List_(), 'list'],
diff --git a/tests/unit/PseudoTypes/NonEmptyArrayTest.php b/tests/unit/PseudoTypes/NonEmptyArrayTest.php
index 50abda7..695416e 100644
--- a/tests/unit/PseudoTypes/NonEmptyArrayTest.php
+++ b/tests/unit/PseudoTypes/NonEmptyArrayTest.php
@@ -44,7 +44,7 @@ final class NonEmptyArrayTest extends TestCase
/**
* @return array<string, array{NonEmptyArray, string}>
*/
- public function provideToStringData(): array
+ public static function provideToStringData(): array
{
return [
'simple non-empty-array' => [new NonEmptyArray(), 'non-empty-array'],
diff --git a/tests/unit/PseudoTypes/NonEmptyListTest.php b/tests/unit/PseudoTypes/NonEmptyListTest.php
index d6f3d33..215bf82 100644
--- a/tests/unit/PseudoTypes/NonEmptyListTest.php
+++ b/tests/unit/PseudoTypes/NonEmptyListTest.php
@@ -44,7 +44,7 @@ final class NonEmptyListTest extends TestCase
/**
* @return array<string, array{NonEmptyList, string}>
*/
- public function provideToStringData(): array
+ public static function provideToStringData(): array
{
return [
'simple non-empty-list' => [new NonEmptyList(), 'non-empty-list'],
diff --git a/tests/unit/PseudoTypes/TraitStringTest.php b/tests/unit/PseudoTypes/TraitStringTest.php
index 5b105ed..c199f4e 100644
--- a/tests/unit/PseudoTypes/TraitStringTest.php
+++ b/tests/unit/PseudoTypes/TraitStringTest.php
@@ -41,7 +41,7 @@ final class TraitStringTest extends TestCase
/**
* @return array<string, array{TraitString, string}>
*/
- public function provideToStringData(): array
+ public static function provideToStringData(): array
{
return [
'basic' => [new TraitString(), 'trait-string'],
diff --git a/tests/unit/TypeResolverTest.php b/tests/unit/TypeResolverTest.php
index 9aff0d6..30b1b63 100644
--- a/tests/unit/TypeResolverTest.php
+++ b/tests/unit/TypeResolverTest.php
@@ -641,7 +641,7 @@ class TypeResolverTest extends TestCase
*
* @return string[][]
*/
- public function provideKeywords(): array
+ public static function provideKeywords(): array
{
return [
['string', String_::class],
@@ -705,7 +705,7 @@ class TypeResolverTest extends TestCase
*
* @return string[][]
*/
- public function provideFqcn(): array
+ public static function provideFqcn(): array
{
return [
'namespace' => ['\phpDocumentor\Reflection'],
@@ -760,7 +760,7 @@ class TypeResolverTest extends TestCase
/**
* @return array<array{0: string, 1: Type}>
*/
- public function typeProvider(): array
+ public static function typeProvider(): array
{
return [
[
@@ -918,7 +918,7 @@ class TypeResolverTest extends TestCase
/**
* @return array<array{0: string, 1: Type}>
*/
- public function genericsProvider(): array
+ public static function genericsProvider(): array
{
return [
[
@@ -1170,7 +1170,7 @@ class TypeResolverTest extends TestCase
/**
* @return array<array{0: string, 1: Type}>
*/
- public function callableProvider(): array
+ public static function callableProvider(): array
{
return [
[
@@ -1278,7 +1278,7 @@ class TypeResolverTest extends TestCase
/**
* @return array<array{0: string, 1: Type}>
*/
- public function constExpressions(): array
+ public static function constExpressions(): array
{
return [
[
@@ -1315,7 +1315,7 @@ class TypeResolverTest extends TestCase
/**
* @return array<array{0: string, 1: Type}>
*/
- public function shapeStructures(): array
+ public static function shapeStructures(): array
{
return [
[
@@ -1358,7 +1358,7 @@ class TypeResolverTest extends TestCase
/**
* @return array<array{0: string, 1: Type}>
*/
- public function illegalLegacyFormatProvider(): array
+ public static function illegalLegacyFormatProvider(): array
{
return [
[
diff --git a/tests/unit/Types/ArrayTest.php b/tests/unit/Types/ArrayTest.php
index 2425319..bb7204f 100644
--- a/tests/unit/Types/ArrayTest.php
+++ b/tests/unit/Types/ArrayTest.php
@@ -61,7 +61,7 @@ final class ArrayTest extends TestCase
/**
* @return array<string, array{Array_, string}>
*/
- public function provideToStringData(): array
+ public static function provideToStringData(): array
{
return [
'simple array' => [new Array_(), 'array'],
diff --git a/tests/unit/Types/IterableTest.php b/tests/unit/Types/IterableTest.php
index 7520ce3..ec59a94 100644
--- a/tests/unit/Types/IterableTest.php
+++ b/tests/unit/Types/IterableTest.php
@@ -28,7 +28,7 @@ final class IterableTest extends TestCase
/**
* @return array<string, array{Iterable_, string}>
*/
- public function provideToStringData(): array
+ public static function provideToStringData(): array
{
return [
'simple iterable' => [new Iterable_(), 'iterable'],
|