Skip to content

Commit 5a6be6a

Browse files
Merge branch '7.4' into 8.0
* 7.4: fix low deps tests
2 parents 02a02b3 + f394a26 commit 5a6be6a

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ContainerLintCommandTest.php

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

1414
use Symfony\Bundle\FrameworkBundle\Console\Application;
1515
use Symfony\Component\Console\Tester\CommandTester;
16+
use Symfony\Component\DependencyInjection\Argument\ArgumentTrait;
1617

1718
/**
1819
* @group functional
@@ -40,14 +41,12 @@ public function testLintContainer(string $configFile, bool $resolveEnvVars, int
4041
$this->assertStringContainsString($expectedOutput, $tester->getDisplay());
4142
}
4243

43-
public static function containerLintProvider(): array
44+
public static function containerLintProvider(): iterable
4445
{
45-
return [
46-
['escaped_percent.yml', false, 0, 'The container was linted successfully'],
47-
['escaped_percent.yml', true, 0, 'The container was linted successfully'],
48-
['missing_env_var.yml', false, 0, 'The container was linted successfully'],
49-
['missing_env_var.yml', true, 1, 'Environment variable not found: "BAR"'],
50-
];
46+
yield ['escaped_percent.yml', false, 0, 'The container was linted successfully'];
47+
yield ['escaped_percent.yml', true, 0, 'The container was linted successfully'];
48+
yield ['missing_env_var.yml', false, 0, 'The container was linted successfully'];
49+
yield ['missing_env_var.yml', true, 1, 'Environment variable not found: "BAR"'];
5150
}
5251

5352
private function createCommandTester(): CommandTester

0 commit comments

Comments
 (0)