Skip to content

Commit 50e3d05

Browse files
authored
Merge pull request #42 from exussum12/addTestForInfection
Add test for Infection
2 parents 542331b + d7697db commit 50e3d05

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/InfectionLoaderTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ public function testCanParseFile()
1111
{
1212

1313
$infection = new InfectionLoader(__DIR__ . '/fixtures/infection-log.txt');
14-
$infection->parseLines();
14+
$files = $infection->parseLines();
15+
1516
$file = '/home/scott/code/coverageChecker/src/DiffFilter.php';
1617

1718
$this->assertFalse(
@@ -26,6 +27,11 @@ public function testCanParseFile()
2627
21
2728
)
2829
);
30+
31+
$this->assertSame(
32+
array_values($files),
33+
$files
34+
);
2935
}
3036

3137
public function testFileNotFound()

0 commit comments

Comments
 (0)