Skip to content

Commit 4445c5e

Browse files
committed
Fix Driver Stub Test
1 parent 3773353 commit 4445c5e

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

tests/Common/Driver/StubTest.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
use VIPSoft\TestCase;
1212
use LeanPHP\Behat\CodeCoverage\Common\Driver\Stub;
13-
use SebastianBergmann\CodeCoverage\Driver\Xdebug;
14-
use SebastianBergmann\CodeCoverage\Driver\PHPDBG;
1513

1614
/**
1715
* Stub driver test
@@ -25,7 +23,7 @@ class StubTest extends TestCase
2523
*/
2624
public function testGetterSetterXdebug()
2725
{
28-
$mock = $this->getMock('Xdebug');
26+
$mock = $this->getMock('SebastianBergmann\CodeCoverage\Driver\Xdebug');
2927

3028
$driver = new Stub();
3129
$this->assertTrue($driver->getDriver() === null);
@@ -39,7 +37,7 @@ public function testGetterSetterXdebug()
3937
*/
4038
public function testStartXdebug()
4139
{
42-
$mock = $this->getMock('Xdebug');
40+
$mock = $this->getMock('SebastianBergmann\CodeCoverage\Driver\Xdebug');
4341
$mock->expects($this->once())
4442
->method('start');
4543

@@ -53,7 +51,7 @@ public function testStartXdebug()
5351
*/
5452
public function testStopXdebug()
5553
{
56-
$mock = $this->getMock('Xdebug');
54+
$mock = $this->getMock('SebastianBergmann\CodeCoverage\Driver\Xdebug');
5755
$mock->expects($this->once())
5856
->method('stop');
5957

@@ -67,7 +65,7 @@ public function testStopXdebug()
6765
*/
6866
public function testGetterSetterPHPDBG()
6967
{
70-
$mock = $this->getMock('PHPDBG');
68+
$mock = $this->getMock('SebastianBergmann\CodeCoverage\Driver\PHPDBG');
7169

7270
$driver = new Stub();
7371
$this->assertTrue($driver->getDriver() === null);
@@ -81,7 +79,7 @@ public function testGetterSetterPHPDBG()
8179
*/
8280
public function testStartPHPDBG()
8381
{
84-
$mock = $this->getMock('PHPDBG');
82+
$mock = $this->getMock('SebastianBergmann\CodeCoverage\Driver\PHPDBG');
8583
$mock->expects($this->once())
8684
->method('start');
8785

@@ -95,7 +93,7 @@ public function testStartPHPDBG()
9593
*/
9694
public function testStopPHPDBG()
9795
{
98-
$mock = $this->getMock('PHPDBG');
96+
$mock = $this->getMock('SebastianBergmann\CodeCoverage\Driver\PHPDBG');
9997
$mock->expects($this->once())
10098
->method('stop');
10199

0 commit comments

Comments
 (0)