Skip to content

Commit 162e981

Browse files
committed
Commit correct file, Revert old one
1 parent a3762f9 commit 162e981

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

tests/PhpMndTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class PhpMndTest extends TestCase
88
{
99
public function setUp()
1010
{
11-
$file = __DIR__ . "/fixtures/phpmnd.txt";
11+
$file = __DIR__ . "/fixtures/phpmnd.txt";
1212
$this->mnd = new PhpMndLoader($file);
1313

1414
$this->assertInstanceOf(PhpMndLoader::class, $this->mnd);

tests/PhpmndDiffFilterTest.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
namespace exussum12\CoverageChecker\tests;
3+
4+
use PHPUnit\Framework\TestCase;
5+
use Exception;
6+
7+
class PhpmndDiffFilterTest extends TestCase
8+
{
9+
10+
public function testValid()
11+
{
12+
$GLOBALS['argv'] = [
13+
'phpunitDiffFilter',
14+
'--phpmnd',
15+
__DIR__ . '/fixtures/change.txt',
16+
__DIR__ . '/fixtures/phpmnd.txt'
17+
];
18+
ob_start();
19+
require(__DIR__ . "/../src/Runners/generic.php");
20+
$output = ob_get_clean();
21+
$this->assertContains('100.00%', $output);
22+
}
23+
}

0 commit comments

Comments
 (0)