Skip to content

Commit 9af18ce

Browse files
OskarStarknicolas-grekas
authored andcommitted
Use static methods inside data providers
1 parent 4fc0a1b commit 9af18ce

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)