Skip to content

Commit 3f0cf3e

Browse files
Merge branch '5.4' into 6.0
* 5.4: Fix integration test gha Update RedisTrait.php Use static methods inside data providers [VarExporter] Fix exporting classes with __unserialize() but not __serialize() [Validator] Fix IBAN format for Tunisia and Mauritania [Workflow] Allow spaces in place names so the PUML dump doesn't break
2 parents 91b31a3 + 9af18ce commit 3f0cf3e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Tests/Config/ContainerParametersResourceCheckerTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testIsFresh(callable $mockContainer, $expected)
5151
$this->assertSame($expected, $this->resourceChecker->isFresh($this->resource, time()));
5252
}
5353

54-
public function isFreshProvider()
54+
public static function isFreshProvider()
5555
{
5656
yield 'not fresh on missing parameter' => [function (MockObject $container) {
5757
$container->method('hasParameter')->with('locales')->willReturn(false);
@@ -62,11 +62,11 @@ public function isFreshProvider()
6262
}, false];
6363

6464
yield 'fresh on every identical parameters' => [function (MockObject $container) {
65-
$container->expects($this->exactly(2))->method('hasParameter')->willReturn(true);
66-
$container->expects($this->exactly(2))->method('getParameter')
65+
$container->expects(self::exactly(2))->method('hasParameter')->willReturn(true);
66+
$container->expects(self::exactly(2))->method('getParameter')
6767
->withConsecutive(
68-
[$this->equalTo('locales')],
69-
[$this->equalTo('default_locale')]
68+
[self::equalTo('locales')],
69+
[self::equalTo('default_locale')]
7070
)
7171
->willReturnMap([
7272
['locales', ['fr', 'en']],

0 commit comments

Comments
 (0)