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 225 226 227 228
|
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/IntRangeTest.php | 2 +-
tests/unit/PseudoTypes/ListTest.php | 2 +-
tests/unit/PseudoTypes/NonEmptyArrayTest.php | 2 +-
tests/unit/PseudoTypes/NonEmptyListTest.php | 2 +-
tests/unit/TypeResolverTest.php | 20 ++++++++++----------
tests/unit/Types/ArrayTest.php | 2 +-
tests/unit/Types/ClassStringTest.php | 2 +-
tests/unit/Types/CollectionTest.php | 2 +-
tests/unit/Types/InterfaceStringTest.php | 2 +-
tests/unit/Types/IterableTest.php | 2 +-
10 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/tests/unit/PseudoTypes/IntRangeTest.php b/tests/unit/PseudoTypes/IntRangeTest.php
index f5d9293..3147374 100644
--- a/tests/unit/PseudoTypes/IntRangeTest.php
+++ b/tests/unit/PseudoTypes/IntRangeTest.php
@@ -32,7 +32,7 @@ class IntRangeTest extends TestCase
/**
* @return mixed[]
*/
- public function provideArrays(): array
+ public static function provideArrays(): array
{
return [
'simple int range' => [new IntegerRange('-5', '5'), 'int<-5, 5>'],
diff --git a/tests/unit/PseudoTypes/ListTest.php b/tests/unit/PseudoTypes/ListTest.php
index aca7db8..ac74bea 100644
--- a/tests/unit/PseudoTypes/ListTest.php
+++ b/tests/unit/PseudoTypes/ListTest.php
@@ -36,7 +36,7 @@ class ListTest extends TestCase
/**
* @return mixed[]
*/
- public function provideArrays(): array
+ public static function provideArrays(): array
{
return [
'simple list' => [new List_(), 'list'],
diff --git a/tests/unit/PseudoTypes/NonEmptyArrayTest.php b/tests/unit/PseudoTypes/NonEmptyArrayTest.php
index 5d7e508..f7d2951 100644
--- a/tests/unit/PseudoTypes/NonEmptyArrayTest.php
+++ b/tests/unit/PseudoTypes/NonEmptyArrayTest.php
@@ -36,7 +36,7 @@ class NonEmptyArrayTest extends TestCase
/**
* @return mixed[]
*/
- public function provideArrays(): array
+ public static function provideArrays(): 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 a576f95..545067e 100644
--- a/tests/unit/PseudoTypes/NonEmptyListTest.php
+++ b/tests/unit/PseudoTypes/NonEmptyListTest.php
@@ -36,7 +36,7 @@ class NonEmptyListTest extends TestCase
/**
* @return mixed[]
*/
- public function provideArrays(): array
+ public static function provideArrays(): array
{
return [
'simple non-empty-list' => [new NonEmptyList(), 'non-empty-list'],
diff --git a/tests/unit/TypeResolverTest.php b/tests/unit/TypeResolverTest.php
index 272535e..922e4ab 100644
--- a/tests/unit/TypeResolverTest.php
+++ b/tests/unit/TypeResolverTest.php
@@ -781,7 +781,7 @@ class TypeResolverTest extends TestCase
*
* @return string[][]
*/
- public function provideKeywords(): array
+ public static function provideKeywords(): array
{
return [
['string', String_::class],
@@ -834,7 +834,7 @@ class TypeResolverTest extends TestCase
*
* @return (string|bool)[][]
*/
- public function provideClassStrings(): array
+ public static function provideClassStrings(): array
{
return [
['class-string<\phpDocumentor\Reflection>', false],
@@ -848,7 +848,7 @@ class TypeResolverTest extends TestCase
*
* @return (string|bool)[][]
*/
- public function provideInterfaceStrings(): array
+ public static function provideInterfaceStrings(): array
{
return [
['interface-string<\phpDocumentor\Reflection>', false],
@@ -862,7 +862,7 @@ class TypeResolverTest extends TestCase
*
* @return string[][]
*/
- public function provideFqcn(): array
+ public static function provideFqcn(): array
{
return [
'namespace' => ['\phpDocumentor\Reflection'],
@@ -915,7 +915,7 @@ class TypeResolverTest extends TestCase
/**
* @return array<array{0: string, 1: Type}>
*/
- public function typeProvider(): array
+ public static function typeProvider(): array
{
return [
[
@@ -1041,7 +1041,7 @@ class TypeResolverTest extends TestCase
/**
* @return array<array{0: string, 1: Type}>
*/
- public function genericsProvider(): array
+ public static function genericsProvider(): array
{
return [
[
@@ -1139,7 +1139,7 @@ class TypeResolverTest extends TestCase
/**
* @return array<array{0: string, 1: Type}>
*/
- public function callableProvider(): array
+ public static function callableProvider(): array
{
return [
[
@@ -1201,7 +1201,7 @@ class TypeResolverTest extends TestCase
/**
* @return array<array{0: string, 1: Type}>
*/
- public function constExpressions(): array
+ public static function constExpressions(): array
{
return [
[
@@ -1238,7 +1238,7 @@ class TypeResolverTest extends TestCase
/**
* @return array<array{0: string, 1: Type}>
*/
- public function shapeStructures(): array
+ public static function shapeStructures(): array
{
return [
[
@@ -1281,7 +1281,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 88117c1..d007c5a 100644
--- a/tests/unit/Types/ArrayTest.php
+++ b/tests/unit/Types/ArrayTest.php
@@ -32,7 +32,7 @@ class ArrayTest extends TestCase
/**
* @return mixed[]
*/
- public function provideArrays(): array
+ public static function provideArrays(): array
{
return [
'simple array' => [new Array_(), 'array'],
diff --git a/tests/unit/Types/ClassStringTest.php b/tests/unit/Types/ClassStringTest.php
index 8f77e76..5a37dd3 100644
--- a/tests/unit/Types/ClassStringTest.php
+++ b/tests/unit/Types/ClassStringTest.php
@@ -33,7 +33,7 @@ class ClassStringTest extends TestCase
/**
* @return mixed[]
*/
- public function provideClassStrings(): array
+ public static function provideClassStrings(): array
{
return [
'generic class string' => [new ClassString(), 'class-string'],
diff --git a/tests/unit/Types/CollectionTest.php b/tests/unit/Types/CollectionTest.php
index c48f3f2..a01ffcd 100644
--- a/tests/unit/Types/CollectionTest.php
+++ b/tests/unit/Types/CollectionTest.php
@@ -33,7 +33,7 @@ class CollectionTest extends TestCase
/**
* @return mixed[]
*/
- public function provideCollections(): array
+ public static function provideCollections(): array
{
return [
'simple collection' => [
diff --git a/tests/unit/Types/InterfaceStringTest.php b/tests/unit/Types/InterfaceStringTest.php
index 19d2001..86872da 100644
--- a/tests/unit/Types/InterfaceStringTest.php
+++ b/tests/unit/Types/InterfaceStringTest.php
@@ -33,7 +33,7 @@ class InterfaceStringTest extends TestCase
/**
* @return mixed[]
*/
- public function provideInterfaceStrings(): array
+ public static function provideInterfaceStrings(): array
{
return [
'generic interface string' => [new InterfaceString(), 'interface-string'],
diff --git a/tests/unit/Types/IterableTest.php b/tests/unit/Types/IterableTest.php
index 6184160..04731e8 100644
--- a/tests/unit/Types/IterableTest.php
+++ b/tests/unit/Types/IterableTest.php
@@ -32,7 +32,7 @@ class IterableTest extends TestCase
/**
* @return mixed[]
*/
- public function provideIterables(): array
+ public static function provideIterables(): array
{
return [
'simple iterable' => [new Iterable_(), 'iterable'],
|