Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[PhpUnitBridge] Added a CoverageListener to enhance the code coverage report #23149

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

Closed
wants to merge 10 commits into from
Prev Previous commit
Next Next commit
Better FS structure & avoid to run fixture test in the main test suite
  • Loading branch information
lyrixx committed Sep 22, 2017
commit 87aebab3c902683dfff12c6ddc8f9c13d3b99265
2 changes: 1 addition & 1 deletion 2 src/Symfony/Bridge/PhpUnit/Tests/CoverageListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function test()
$this->markTestSkipped('This test cannot be run on Windows.');
}

$dir = __DIR__.'/../Tests-Fixtures/coverage';
$dir = __DIR__.'/../Tests/Fixtures/coverage';
$php = PHP_BINARY;
$phpunit = $_SERVER['argv'][0];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ class BarTest extends TestCase
{
public function testBar()
{
if (!class_exists('Foo')) {
$this->markTestSkipped('This test is not part of the main Symfony test suite. It\'s here to test the CoverageListener.');
}

$foo = new Foo();
$bar = new Bar($foo);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
require __DIR__.'/../src/Bar.php';
require __DIR__.'/../src/Foo.php';

require __DIR__.'/../../../Legacy/CoverageListenerTrait.php';
require __DIR__.'/../../../../Legacy/CoverageListenerTrait.php';
if (class_exists('PHPUnit_Runner_Version') && version_compare(\PHPUnit_Runner_Version::id(), '6.0.0', '<')) {
require __DIR__.'/../../../Legacy/CoverageListener.php';
require __DIR__.'/../../../../Legacy/CoverageListener.php';
}
require __DIR__.'/../../../CoverageListener.php';
require __DIR__.'/../../../../CoverageListener.php';
Morty Proxy This is a proxified and sanitized view of the page, visit original site.