99namespace LeanPHP \Behat \CodeCoverage \Common \Report ;
1010
1111use LeanPHP \Behat \CodeCoverage \Common \ReportInterface ;
12+ use SebastianBergmann \CodeCoverage \PHP_CodeCoverage ;
13+ use SebastianBergmann \CodeCoverage \Report \Text as TextCC ;
1214
1315/**
1416 * Text report
1820class Text implements ReportInterface
1921{
2022 /**
21- * @var \PHP_CodeCoverage_Report_Text
23+ * @var \SebastianBergmann\CodeCoverage\Report\Text
2224 */
2325 private $ report ;
2426
@@ -55,7 +57,7 @@ public function __construct(array $options)
5557 if ($ this ->getVersion () === '1.2 ' ) {
5658 $ outputStream = new \PHPUnit_Util_Printer ($ options ['printer ' ]);
5759
58- $ this ->report = new \ PHP_CodeCoverage_Report_Text (
60+ $ this ->report = new TextCC (
5961 $ outputStream ,
6062 $ options ['lowUpperBound ' ],
6163 $ options ['highUpperBound ' ],
@@ -66,7 +68,7 @@ public function __construct(array $options)
6668 $ options ['showOnlySummary ' ] = false ;
6769 }
6870
69- $ this ->report = new \ PHP_CodeCoverage_Report_Text (
71+ $ this ->report = new TextCC (
7072 $ options ['lowUpperBound ' ],
7173 $ options ['highUpperBound ' ],
7274 $ options ['showUncoveredFiles ' ],
@@ -80,7 +82,7 @@ public function __construct(array $options)
8082 /**
8183 * {@inheritdoc}
8284 */
83- public function process (\ PHP_CodeCoverage $ coverage )
85+ public function process (PHP_CodeCoverage $ coverage )
8486 {
8587 return $ this ->report ->process (
8688 $ coverage ,
@@ -90,7 +92,7 @@ public function process(\PHP_CodeCoverage $coverage)
9092
9193 private function getVersion ()
9294 {
93- $ reflectionMethod = new \ReflectionMethod ('PHP_CodeCoverage_Report_Text ' , '__construct ' );
95+ $ reflectionMethod = new \ReflectionMethod ('TextCC ' , '__construct ' );
9496 $ parameters = $ reflectionMethod ->getParameters ();
9597
9698 if (reset ($ parameters )->name === 'outputStream ' ) {
0 commit comments