Skip to content

Commit 3e015b0

Browse files
committed
Adapt test case to phpunit version 2
1 parent 64c05ff commit 3e015b0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

phpunit.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3-
<coverage processUncoveredFiles="true">
4-
<include>
5-
<directory suffix=".php">./src</directory>
6-
</include>
7-
</coverage>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/12.0/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
83
<testsuites>
94
<testsuite name="Suite">
105
<directory suffix="Test.php">./tests</directory>
116
</testsuite>
127
</testsuites>
8+
<source>
9+
<include>
10+
<directory suffix=".php">./src</directory>
11+
</include>
12+
</source>
1313
</phpunit>

tests/DrupalOrg/VersionGroupTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace DrupalSecurityJira\DrupalOrg;
44

5+
use PHPUnit\Framework\Attributes\DataProvider;
56
use PHPUnit\Framework\TestCase;
67

78
class VersionGroupTest extends TestCase
@@ -57,12 +58,11 @@ public static function versionGroups(): array
5758
}
5859

5960
/**
60-
* @dataProvider versionGroups
61-
*
6261
* @param string[] $versions
6362
* @param string|null $nextVersion
6463
* The expected next version (if any)
6564
*/
65+
#[DataProvider('versionGroups')]
6666
public function testGetNextVersion(
6767
array $versions,
6868
string $currentVersion,

0 commit comments

Comments
 (0)