8000 [PhpUnitBridge] Added a CoverageListener to enhance the code coverage report by lyrixx · Pull Request #23149 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[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
Fixed tests on Windows
  • Loading branch information
lyrixx committed Sep 22, 2017
commit 1e92acd059d7e3a849b3966d3b4bef9513cb9a78
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
* file that was distributed with this source code.
*/

namespace PhpUnitCoverageTest;

class Bar
{
private $foo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
* file that was distributed with this source code.
*/

namespace PhpUnitCoverageTest;

class Foo
{
public function fooZ()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,20 @@
* file that was distributed with this source code.
*/

namespace PhpUnitCoverageTest\Tests;

use PHPUnit\Framework\TestCase;

class BarTest extends TestCase
{
public function testBar()
{
if (!class_exists('Foo')) {
if (!class_exists('PhpUnitCoverageTest\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);
$foo = new \PhpUnitCoverageTest\Foo();
$bar = new \PhpUnitCoverageTest\Bar($foo);

$this->assertSame('bar', $bar->barZ());
}
Expand Down
0