mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-06 03:47:04 +00:00
removed usage of getmockBuilder() when not needed
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user