8000 minor #58315 [AssetMapper] Use static data providers (derrabus) · symfony/symfony@df36e5f · GitHub
[go: up one dir, main page]

Skip to content

Commit df36e5f

Browse files
committed
minor #58315 [AssetMapper] Use static data providers (derrabus)
This PR was merged into the 6.4 branch. Discussion ---------- [AssetMapper] Use static data providers | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | N/A | License | MIT Data provider must be public and static in PHPUnit 11. Commits ------- f4c5108 [AssetMapper] Use static data providers
2 parents ccdaca1 + f4c5108 commit df36e5f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapAuditorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function testAuditWithVersionRange(bool $expectMatch, string $version, ?s
119119
$this->assertSame($expectMatch, 0 < \count($audit[0]->vulnerabilities));
120120
}
121121

122-
public function provideAuditWithVersionRange(): iterable
122+
public static function provideAuditWithVersionRange(): iterable
123123
{
124124
yield [true, '1.0.0', null];
125125
yield [true, '1.0.0', '>= *'];

src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapGeneratorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ public function testGetRawImportMapData(array $importMapEntries, array $mappedAs
275275
$this->assertEquals($expectedData, $manager->getRawImportMapData());
276276
}
277277

278-
public function getRawImportMapDataTests(): iterable
278+
public static function getRawImportMapDataTests(): iterable
279279
{
280280
yield 'it returns remote downloaded entry' => [
281281
[
@@ -610,7 +610,7 @@ public function testFindEagerEntrypointImports(MappedAsset $entryAsset, array $e
610610
$this->assertEquals($expected, $manager->findEagerEntrypointImports('the_entrypoint_name'));
611611
}
612612

613-
public function getEagerEntrypointImportsTests(): iterable
613+
public static function getEagerEntrypointImportsTests(): iterable
614614
{
615615
yield 'an entry with no dependencies' => [
616616
new MappedAsset(

src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapUpdateCheckerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function testGetAvailableUpdatesForSinglePackage(array $entries, array $e
127127
}
128128
}
129129

130-
private function provideImportMapEntry()
130+
public static function provideImportMapEntry(): iterable
131131
{
132132
yield [
133133
[self::createRemoteEntry(

src/Symfony/Component/AssetMapper/Tests/ImportMap/PackageUpdateInfoTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function testConstructor($importName, $currentVersion, $latestVersion, $u
3434
$this->assertSame($updateType, $packageUpdateInfo->updateType);
3535
}
3636

37-
public function provideValidConstructorArguments()
37+
public static function provideValidConstructorArguments(): iterable
3838
{
3939
return [
4040
['@hotwired/stimulus', '5.2.1', 'string', 'downgrade'],
@@ -57,7 +57,7 @@ public function testHasUpdate($updateType, $expectUpdate)
5757
$this->assertSame($expectUpdate, $packageUpdateInfo->hasUpdate());
5858
}
5959

60-
public function provideHasUpdateArguments()
60+
public static function provideHasUpdateArguments(): iterable
6161
{
6262
return [
6363
['downgrade', false],

0 commit comments

Comments
 (0)
0