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
|
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sun, 19 May 2024 23:59:16 +0200
Subject: Make provider function static (PHPUnit 11 Fix)
Bug-Debian: https://bugs.debian.org/1070589
---
phpunit.xml | 13 -------------
tests/PHPStan/Parser/PhpDocParserTest.php | 4 ++--
tests/PHPStan/Parser/TokenIteratorTest.php | 2 +-
3 files changed, 3 insertions(+), 16 deletions(-)
diff --git a/phpunit.xml b/phpunit.xml
index 23404a2..9d91ba5 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -12,19 +12,6 @@
failOnWarning="true"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xml"
>
- <coverage>
- <include>
- <directory suffix=".php">./src</directory>
- </include>
- <report>
- <clover outputFile="tests/tmp/clover.xml"/>
- <text
- outputFile="php://stdout"
- showUncoveredFiles="true"
- showOnlySummary="true"
- />
- </report>
- </coverage>
<testsuites>
<testsuite name="PHPStan PHPDoc Parser">
diff --git a/tests/PHPStan/Parser/PhpDocParserTest.php b/tests/PHPStan/Parser/PhpDocParserTest.php
index 1ec1dc6..3d1bf70 100644
--- a/tests/PHPStan/Parser/PhpDocParserTest.php
+++ b/tests/PHPStan/Parser/PhpDocParserTest.php
@@ -3074,7 +3074,7 @@ class PhpDocParserTest extends TestCase
/**
* @return iterable<array<mixed>>
*/
- public function provideMultiLinePhpDocData(): iterable
+ public static function provideMultiLinePhpDocData(): iterable
{
yield from [
[
@@ -7856,7 +7856,7 @@ Finder::findFiles('*.php')
/**
* @return iterable<array{string, PhpDocNode}>
*/
- public function dataTextBetweenTagsBelongsToDescription(): iterable
+ public static function dataTextBetweenTagsBelongsToDescription(): iterable
{
yield [
'/**' . PHP_EOL .
diff --git a/tests/PHPStan/Parser/TokenIteratorTest.php b/tests/PHPStan/Parser/TokenIteratorTest.php
index 3cc51fc..99f9510 100644
--- a/tests/PHPStan/Parser/TokenIteratorTest.php
+++ b/tests/PHPStan/Parser/TokenIteratorTest.php
@@ -13,7 +13,7 @@ class TokenIteratorTest extends TestCase
/**
* @return iterable<array{string, ?string}>
*/
- public function dataGetDetectedNewline(): iterable
+ public static function dataGetDetectedNewline(): iterable
{
yield [
'/** @param Foo $a */',
|