Skip to content

Commit 9e5c4fd

Browse files
committed
fix namespace alias (CC->Report)
1 parent b3cb556 commit 9e5c4fd

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

src/Common/Report/Clover.php

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

1111
use LeanPHP\Behat\CodeCoverage\Common\ReportInterface;
1212
use SebastianBergmann\CodeCoverage\CodeCoverage;
13-
use SebastianBergmann\CodeCoverage\Report\Clover as CloverCC;
13+
use SebastianBergmann\CodeCoverage\Report\Clover as CloverReport;
1414

1515
/**
1616
* Clover report
@@ -42,7 +42,7 @@ public function __construct(array $options)
4242
$options['name'] = null;
4343
}
4444

45-
$this->report = new CloverCC();
45+
$this->report = new CloverReport();
4646
$this->options = $options;
4747
}
4848

src/Common/Report/Crap4j.php

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

1111
use LeanPHP\Behat\CodeCoverage\Common\ReportInterface;
1212
use SebastianBergmann\CodeCoverage\CodeCoverage;
13-
use SebastianBergmann\CodeCoverage\Report\Crap4j as Crap4jCC;
13+
use SebastianBergmann\CodeCoverage\Report\Crap4j as Crap4jReport;
1414
/**
1515
* Crap4j report
1616
*
@@ -19,7 +19,7 @@
1919
class Crap4j implements ReportInterface
2020
{
2121
/**
22-
* @var Crap4jCC
22+
* @var SebastianBergmann\CodeCoverage\Report\Crap4j
2323
*/
2424
private $report;
2525

@@ -33,7 +33,7 @@ class Crap4j implements ReportInterface
3333
*/
3434
public function __construct(array $options)
3535
{
36-
if ( ! class_exists('Crap4jCC')) {
36+
if ( ! class_exists('SebastianBergmann\CodeCoverage\Report\Crap4j')) {
3737
throw new \Exception('Crap4j requires CodeCoverage 4.0+');
3838
}
3939

@@ -45,7 +45,7 @@ public function __construct(array $options)
4545
$options['name'] = null;
4646
}
4747

48-
$this->report = new Crap4jCC();
48+
$this->report = new Crap4jReport();
4949
$this->options = $options;
5050
}
5151

src/Common/Report/Php.php

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

1111
use LeanPHP\Behat\CodeCoverage\Common\ReportInterface;
1212
use SebastianBergmann\CodeCoverage\CodeCoverage;
13-
use SebastianBergmann\CodeCoverage\Report\Clover as Clover;
14-
use SebastianBergmann\CodeCoverage\Report\PHP as PHPCC;
13+
use SebastianBergmann\CodeCoverage\Report\PHP as PHPReport;
1514

1615
/**
1716
* PHP report
@@ -39,7 +38,7 @@ public function __construct(array $options)
3938
$options['target'] = null;
4039
}
4140

42-
$this->report = new PHPCC();
41+
$this->report = new PHPReport();
4342
$this->options = $options;
4443
}
4544

src/Common/Report/Text.php

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

1111
use LeanPHP\Behat\CodeCoverage\Common\ReportInterface;
1212
use SebastianBergmann\CodeCoverage\CodeCoverage;
13-
use SebastianBergmann\CodeCoverage\Report\Text as TextCC;
13+
use SebastianBergmann\CodeCoverage\Report\Text as TextReport;
1414

1515
/**
1616
* Text report
@@ -57,7 +57,7 @@ public function __construct(array $options)
5757
if ($this->getVersion() === '1.2') {
5858
$outputStream = new \PHPUnit_Util_Printer($options['printer']);
5959

60-
$this->report = new TextCC(
60+
$this->report = new TextReport(
6161
$outputStream,
6262
$options['lowUpperBound'],
6363
$options['highUpperBound'],
@@ -68,7 +68,7 @@ public function __construct(array $options)
6868
$options['showOnlySummary'] = false;
6969
}
7070

71-
$this->report = new TextCC(
71+
$this->report = new TextReport(
7272
$options['lowUpperBound'],
7373
$options['highUpperBound'],
7474
$options['showUncoveredFiles'],

0 commit comments

Comments
 (0)