Skip to content

Commit

Permalink
Fix new references in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamdunk authored and sebastianbergmann committed Feb 7, 2023
1 parent 1f7c754 commit 991e8d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Util/PHP/Template/TestCaseClass.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ function __phpunit_run_isolated_test()
require_once '{filename}';

if ({collectCodeCoverageInformation}) {
CodeCoverageFilterRegistry::init(ConfigurationRegistry::get());
CodeCoverage::init(ConfigurationRegistry::get());
CodeCoverage::instance()->init(ConfigurationRegistry::get(), CodeCoverageFilterRegistry::instance());
}

$test = new {className}('{name}');
Expand Down
3 changes: 1 addition & 2 deletions src/Util/PHP/Template/TestCaseMethod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ function __phpunit_run_isolated_test()
require_once '{filename}';

if ({collectCodeCoverageInformation}) {
CodeCoverageFilterRegistry::init(ConfigurationRegistry::get());
CodeCoverage::init(ConfigurationRegistry::get());
CodeCoverage::instance()->init(ConfigurationRegistry::get(), CodeCoverageFilterRegistry::instance());
}

$test = new {className}('{methodName}');
Expand Down

0 comments on commit 991e8d4

Please sign in to comment.