Skip to content

Commit

Permalink
Fix various warnings across components test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed May 2, 2024
1 parent 5b4505f commit 3c1d995
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/Config/ContainerParametersResourceCheckerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function testSupports()
*/
public function testIsFresh(callable $mockContainer, $expected)
{
$mockContainer($this->container);
$mockContainer($this->container, $this);

$this->assertSame($expected, $this->resourceChecker->isFresh($this->resource, time()));
}
Expand All @@ -61,9 +61,9 @@ public static function isFreshProvider()
$container->method('getParameter')->with('locales')->willReturn(['nl', 'es']);
}, false];

yield 'fresh on every identical parameters' => [function (MockObject $container) {
$container->expects(self::exactly(2))->method('hasParameter')->willReturn(true);
$container->expects(self::exactly(2))->method('getParameter')
yield 'fresh on every identical parameters' => [function (MockObject $container, TestCase $testCase) {
$container->expects($testCase->exactly(2))->method('hasParameter')->willReturn(true);
$container->expects($testCase->exactly(2))->method('getParameter')
->willReturnCallback(function (...$args) {
static $series = [
[['locales'], ['fr', 'en']],
Expand Down
2 changes: 2 additions & 0 deletions Tests/Loader/PhpFileLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ public function testNestedBundleConfigNotAllowed()
*/
public function testWhenEnv()
{
$this->expectNotToPerformAssertions();

$fixtures = realpath(__DIR__.'/../Fixtures');
$container = new ContainerBuilder();
$loader = new PhpFileLoader($container, new FileLocator(), 'dev', new ConfigBuilderGenerator(sys_get_temp_dir()));
Expand Down

0 comments on commit 3c1d995

Please sign in to comment.