Skip to content

Commit 88f4972

Browse files
committed
fix more tests (getMock()->createMock())
1 parent 65c64f4 commit 88f4972

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/Common/Report/CloverTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
use VIPSoft\TestCase;
1212
use LeanPHP\Behat\CodeCoverage\Common\Report\Factory;
13-
use SebastianBergmann\CodeCoverage\CodeCoverage;
1413
use SebastianBergmann\CodeCoverage\Report\Node\File;
1514

1615
/**
@@ -26,7 +25,7 @@ public function testProcess()
2625
->disableOriginalConstructor()
2726
->getMock();
2827

29-
$coverage = $this->createMock('CodeCoverage');
28+
$coverage = $this->createMock('SebastianBergmann\CodeCoverage\CodeCoverage');
3029
$coverage->expects($this->once())
3130
->method('getReport')
3231
->will($this->returnValue($report));

tests/ExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public function testConfigure()
370370

371371
public function testProcess()
372372
{
373-
$container = $this->getMock('Symfony\Component\DependencyInjection\ContainerBuilder');
373+
$container = $this->createMock('Symfony\Component\DependencyInjection\ContainerBuilder');
374374
$container->expects($this->exactly(4))
375375
->method('hasDefinition');
376376

0 commit comments

Comments
 (0)