File tree Expand file tree Collapse file tree 4 files changed +0
-40
lines changed Expand file tree Collapse file tree 4 files changed +0
-40
lines changed Original file line number Diff line number Diff line change @@ -1556,28 +1556,6 @@ protected function setUpXdebugStubForClassWithAnonymousFunction(): Driver
1556
1556
return $ stub ;
1557
1557
}
1558
1558
1559
- protected function getCoverageForCrashParsing (): CodeCoverage
1560
- {
1561
- $ filter = new Filter ;
1562
- $ filter ->includeFile (TEST_FILES_PATH . 'Crash.php ' );
1563
-
1564
- // This is a file with invalid syntax, so it isn't executed.
1565
- return new CodeCoverage (
1566
- $ this ->setUpXdebugStubForCrashParsing (),
1567
- $ filter
1568
- );
1569
- }
1570
-
1571
- protected function setUpXdebugStubForCrashParsing (): Driver
1572
- {
1573
- $ stub = $ this ->createStub (Driver::class);
1574
-
1575
- $ stub ->method ('stop ' )
1576
- ->willReturn (RawCodeCoverageData::fromXdebugWithoutPathCoverage ([]));
1577
-
1578
- return $ stub ;
1579
- }
1580
-
1581
1559
protected function removeTemporaryFiles (): void
1582
1560
{
1583
1561
$ tmpFilesIterator = new RecursiveIteratorIterator (
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -148,21 +148,6 @@ public function testSomething(): void
148
148
$ this ->assertEquals ([], $ root ->functions ());
149
149
}
150
150
151
- public function testNotCrashParsing (): void
152
- {
153
- $ coverage = $ this ->getCoverageForCrashParsing ();
154
- $ root = $ coverage ->getReport ();
155
-
156
- $ expectedPath = rtrim (TEST_FILES_PATH , DIRECTORY_SEPARATOR );
157
- $ this ->assertEquals ($ expectedPath , $ root ->name ());
158
- $ this ->assertEquals ($ expectedPath , $ root ->pathAsString ());
159
- $ this ->assertEquals (1 , $ root ->numberOfExecutableLines ());
160
- $ this ->assertEquals (0 , $ root ->numberOfExecutedLines ());
161
- $ data = $ coverage ->getData ()->lineCoverage ();
162
- $ expectedFile = $ expectedPath . DIRECTORY_SEPARATOR . 'Crash.php ' ;
163
- $ this ->assertSame ([$ expectedFile => [1 => []]], $ data );
164
- }
165
-
166
151
public function testBuildDirectoryStructure (): void
167
152
{
168
153
$ s = DIRECTORY_SEPARATOR ;
Original file line number Diff line number Diff line change @@ -56,7 +56,6 @@ protected function setUp(): void
56
56
TEST_FILES_PATH . 'CoverageTwoDefaultClassAnnotations.php ' ,
57
57
TEST_FILES_PATH . 'CoveredClass.php ' ,
58
58
TEST_FILES_PATH . 'CoveredFunction.php ' ,
59
- TEST_FILES_PATH . 'Crash.php ' ,
60
59
TEST_FILES_PATH . 'NamespaceCoverageClassExtendedTest.php ' ,
61
60
TEST_FILES_PATH . 'NamespaceCoverageClassTest.php ' ,
62
61
TEST_FILES_PATH . 'NamespaceCoverageCoversClassPublicTest.php ' ,
You can’t perform that action at this time.
0 commit comments