Skip to content

Commit 3c1d995

Browse files
Fix various warnings across components test suite
1 parent 5b4505f commit 3c1d995

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Tests/Config/ContainerParametersResourceCheckerTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function testSupports()
4646
*/
4747
public function testIsFresh(callable $mockContainer, $expected)
4848
{
49-
$mockContainer($this->container);
49+
$mockContainer($this->container, $this);
5050

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

64-
yield 'fresh on every identical parameters' => [function (MockObject $container) {
65-
$container->expects(self::exactly(2))->method('hasParameter')->willReturn(true);
66-
$container->expects(self::exactly(2))->method('getParameter')
64+
yield 'fresh on every identical parameters' => [function (MockObject $container, TestCase $testCase) {
65+
$container->expects($testCase->exactly(2))->method('hasParameter')->willReturn(true);
66+
$container->expects($testCase->exactly(2))->method('getParameter')
6767
->willReturnCallback(function (...$args) {
6868
static $series = [
6969
[['locales'], ['fr', 'en']],

Tests/Loader/PhpFileLoaderTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ public function testNestedBundleConfigNotAllowed()
194194
*/
195195
public function testWhenEnv()
196196
{
197+
$this->expectNotToPerformAssertions();
198+
197199
$fixtures = realpath(__DIR__.'/../Fixtures');
198200
$container = new ContainerBuilder();
199201
$loader = new PhpFileLoader($container, new FileLocator(), 'dev', new ConfigBuilderGenerator(sys_get_temp_dir()));

0 commit comments

Comments
 (0)