Skip to content

Commit 98c60b9

Browse files
committed
Bump test-framework and fix sniffer issues
1 parent bf7e920 commit 98c60b9

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"require-dev": {
2626
"ext-intl": "*",
2727

28-
"simplesamlphp/simplesamlphp-test-framework": "~1.9.2"
28+
"simplesamlphp/simplesamlphp-test-framework": "~1.10.1"
2929
},
3030
"autoload": {
3131
"psr-4": {

src/Assert.php

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
use function array_unshift;
1717
use function call_user_func_array;
1818
use function end;
19-
use function enum_exists;
20-
use function function_exists;
21-
use function get_class;
2219
use function is_object;
2320
use function is_resource;
2421
use function is_string;
@@ -116,16 +113,16 @@
116113
* @method static void keyExists(array $array, string|int $key, string $message = '', string $exception = '')
117114
* @method static void keyNotExists(array $array, string|int $key, string $message = '', string $exception = '')
118115
* @method static void validArrayKey($value, string $message = '', string $exception = '')
119-
* @method static void count(Countable|array $array, int $number, string $message = '', string $exception = '')
120-
* @method static void minCount(Countable|array $array, int|float $min, string $message = '', string $exception = '')
121-
* @method static void maxCount(Countable|array $array, int|float $max, string $message = '', string $exception = '')
122-
* @method static void countBetween(Countable|array $array, int|float $min, int|float $max, string $message = '', string $exception = '')
116+
* @method static void count(\Countable|array $array, int $number, string $message = '', string $exception = '')
117+
* @method static void minCount(\Countable|array $array, int|float $min, string $message = '', string $exception = '')
118+
* @method static void maxCount(\Countable|array $array, int|float $max, string $message = '', string $exception = '')
119+
* @method static void countBetween(\Countable|array $array, int|float $min, int|float $max, string $message = '', string $exception = '')
123120
* @method static void isList(mixed $array, string $message = '', string $exception = '')
124121
* @method static void isNonEmptyList(mixed $array, string $message = '', string $exception = '')
125122
* @method static void isMap(mixed $array, string $message = '', string $exception = '')
126123
* @method static void isNonEmptyMap(mixed $array, string $message = '', string $exception = '')
127124
* @method static void uuid(string $value, string $message = '', string $exception = '')
128-
* @method static void throws(Closure $expression, string $class = 'Exception', string $message = '', string $exception = '')
125+
* @method static void throws(\Closure $expression, string $class = 'Exception', string $message = '', string $exception = '')
129126
*
130127
* @method static void nullOrString(mixed $value, string $message = '', string $exception = '')
131128
* @method static void allString(mixed $value, string $message = '', string $exception = '')
@@ -291,13 +288,13 @@
291288
* @method static void allKeyNotExists(array $array, string|int $key, string $message = '', string $exception = '')
292289
* @method static void nullOrValidArrayKey(mixed $value, string $message = '', string $exception = '')
293290
* @method static void allValidArrayKey(mixed $value, string $message = '', string $exception = '')
294-
* @method static void nullOrCount(Countable|array|null $array, int $number, string $message = '', string $exception = '')
291+
* @method static void nullOrCount(\Countable|array|null $array, int $number, string $message = '', string $exception = '')
295292
* @method static void allCount(array $array, int $number, string $message = '', string $exception = '')
296-
* @method static void nullOrMinCount(Countable|array|null $array, int|float $min, string $message = '', string $exception = '')
293+
* @method static void nullOrMinCount(\Countable|array|null $array, int|float $min, string $message = '', string $exception = '')
297294
* @method static void allMinCount(array $array, int|float $min, string $message = '', string $exception = '')
298-
* @method static void nullOrMaxCount(Countable|array|null $array, int|float $max, string $message = '', string $exception = '')
295+
* @method static void nullOrMaxCount(\Countable|array|null $array, int|float $max, string $message = '', string $exception = '')
299296
* @method static void allMaxCount(array $array, int|float $max, string $message = '', string $exception = '')
300-
* @method static void nullOrCountBetween(Countable|array|null $array, int|float $min, int|float $max, string $message = '', string $exception = '')
297+
* @method static void nullOrCountBetween(\Countable|array|null $array, int|float $min, int|float $max, string $message = '', string $exception = '')
301298
* @method static void allCountBetween(array $array, int|float $min, int|float $max, string $message = '', string $exception = '')
302299
* @method static void nullOrIsList(mixed $array, string $message = '', string $exception = '')
303300
* @method static void allIsList(mixed $array, string $message = '', string $exception = '')
@@ -309,8 +306,8 @@
309306
* @method static void allIsNonEmptyMap(mixed $array, string $message = '', string $exception = '')
310307
* @method static void nullOrUuid(string|null $value, string $message = '', string $exception = '')
311308
* @method static void allUuid(string[] $value, string $message = '', string $exception = '')
312-
* @method static void nullOrThrows(Closure|null $expression, string $class, string $message = '', string $exception = '')
313-
* @method static void allThrows(Closure[] $expression, string $class, string $message = '', string $exception = '')
309+
* @method static void nullOrThrows(\Closure|null $expression, string $class, string $message = '', string $exception = '')
310+
* @method static void allThrows(\Closure[] $expression, string $class, string $message = '', string $exception = '')
314311
*
315312
* @method static void validBase64(mixed $value, string $message = '', string $exception = '')
316313
* @method static void notInArray(mixed $value, array $values, string $message = '', string $exception = '')

tests/Utils/TestClass.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ class TestClass
99
{
1010
private string $foo;
1111

12+
1213
public function __construct(string $foo)
1314
{
1415
$this->foo = $foo;
1516
}
1617

18+
1719
public function __toString(): string
1820
{
1921
return $this->foo;

0 commit comments

Comments
 (0)