removed usage of getmockBuilder() when not needed

This commit is contained in:
Fabien Potencier
2019-08-08 13:34:04 +02:00
parent 656c295ed9
commit c7b0a459ca
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ class ContainerRuntimeLoaderTest extends TestCase
{
public function testLoad()
{
$container = $this->getMockBuilder(ContainerInterface::class)->getMock();
$container = $this->createMock(ContainerInterface::class);
$container->expects($this->once())->method('has')->with('stdClass')->willReturn(true);
$container->expects($this->once())->method('get')->with('stdClass')->willReturn(new \stdClass());
@@ -30,7 +30,7 @@ class ContainerRuntimeLoaderTest extends TestCase
public function testLoadUnknownRuntimeReturnsNull()
{
$container = $this->getMockBuilder(ContainerInterface::class)->getMock();
$container = $this->createMock(ContainerInterface::class);
$container->expects($this->once())->method('has')->with('Foo');
$container->expects($this->never())->method('get');