Skip to content

Commit 49b44fb

Browse files
committed
fix compatiblity problem with php-code-coverage v6 due to deprecated function
1 parent 5a4c9c4 commit 49b44fb

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ documented in this file.
66
The format is based on [Keep a Changelog](http://keepachangelog.com/)
77
and this project adheres to [Semantic Versioning](http://semver.org/).
88

9+
## [3.4.1] - 2018-05-09
10+
11+
- **BUG**: Fix a bug regarding deprecated CodeCoverage function in v6 (#35)
12+
913
## [3.4.0] - 2018-05-04
1014

1115
- Require PHP 7.1 and php-code-coverage ^6.0.
@@ -91,7 +95,10 @@ disappear, this extension would still work.
9195
- Updated `vfsStream` from `1.2.*` to `1.3.*` to fix failing/skipped test
9296
- Updated versions of dependencies and code is tested to run with Behat `2.5`.
9397

94-
[3.3.x-dev]: https://github.com/leanphp/behat-code-coverage/compare/v3.3.0...master
98+
[3.4.x-dev]: https://github.com/leanphp/behat-code-coverage/compare/v3.4.1...master
99+
[3.4.1]: https://github.com/leanphp/behat-code-coverage/releases/tag/v3.4.1
100+
[3.4.0]: https://github.com/leanphp/behat-code-coverage/releases/tag/v3.4.0
101+
[3.3.1]: https://github.com/leanphp/behat-code-coverage/releases/tag/v3.3.1
95102
[3.3.0]: https://github.com/leanphp/behat-code-coverage/releases/tag/v3.3.0
96103
[3.2.1]: https://github.com/leanphp/behat-code-coverage/releases/tag/v3.2.0
97104
[3.2.0]: https://github.com/leanphp/behat-code-coverage/releases/tag/v3.2.0

src/Compiler/FilterPass.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ private function processCodeCoverage(ContainerBuilder $container)
5353
'setForceCoversAnnotation',
5454
array($config['forceCoversAnnotation'])
5555
);
56-
$coverage->addMethodCall(
57-
'setMapTestClassNameToCoveredClassName',
58-
array($config['mapTestClassNameToCoveredClassName'])
59-
);
6056
}
6157

6258
/**

src/Service/ReportService.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ public function __construct(array $config, Factory $factory)
4848
*/
4949
public function generateReport(CodeCoverage $coverage)
5050
{
51-
var_dump($this->config['report']);
5251
$format = $this->config['report']['format'];
5352
$options = $this->config['report']['options'];
5453

0 commit comments

Comments
 (0)