File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ class PhpMndTest extends TestCase
8
8
{
9
9
public function setUp ()
10
10
{
11
- $ file = __DIR__ . "/fixtures/phpmnd.txt " ;
11
+ $ file = __DIR__ . "/fixtures/phpmnd.txt " ;
12
12
$ this ->mnd = new PhpMndLoader ($ file );
13
13
14
14
$ this ->assertInstanceOf (PhpMndLoader::class, $ this ->mnd );
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments