Skip to content

Commit 910effe

Browse files
committed
do not mock any ContainerBuilder methods
The tests are not expected to call any of the methods of the `ContainerBuilder` class. Therefore, none need to be mocked. This is needed as PHPUnit would otherwise complain about not being able to mock the non-existent `ExpressionFunctionProviderInterface` (which is provided by the ExpressionLanguage component, but is actually an optional dependency here).
1 parent 75b758e commit 910effe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Tests/Loader/LoaderFactoryTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ private function createMockContainerBuilder()
4444
return $this
4545
->getMockBuilder('Symfony\Component\DependencyInjection\ContainerBuilder')
4646
->disableOriginalConstructor()
47+
->setMethods(null)
4748
->getMock();
4849
}
4950
}

0 commit comments

Comments
 (0)