Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix code coverage error on @runTestsInSeparateProcesses #4006

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Util/PHP/Template/PhptTestCase.tpl
@@ -1,5 +1,5 @@
<?php
use SebastianBergmann\CodeCoverage\CodeCoverage;
use PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage;

$composerAutoload = {composerAutoload};
$phar = {phar};
Expand All @@ -22,7 +22,7 @@ if (isset($GLOBALS['__PHPUNIT_BOOTSTRAP'])) {
require_once $GLOBALS['__PHPUNIT_BOOTSTRAP'];
}

if (class_exists('SebastianBergmann\CodeCoverage\CodeCoverage')) {
if (class_exists('PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage')) {
$coverage = new CodeCoverage(null);
$coverage->start(__FILE__);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Util/PHP/Template/TestCaseClass.tpl
@@ -1,5 +1,5 @@
<?php
use SebastianBergmann\CodeCoverage\CodeCoverage;
use PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage;

if (!defined('STDOUT')) {
// php://stdout does not obey output buffering. Any output would break
Expand Down
2 changes: 1 addition & 1 deletion src/Util/PHP/Template/TestCaseMethod.tpl
@@ -1,6 +1,6 @@
<?php
use PHPUnit\Framework\TestCase;
use SebastianBergmann\CodeCoverage\CodeCoverage;
use PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage;

if (!defined('STDOUT')) {
// php://stdout does not obey output buffering. Any output would break
Expand Down