8000 clean up reset as already in setUp · rectorphp/rector-src@97995f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 97995f7

Browse files
committed
clean up reset as already in setUp
1 parent 82fe4cf commit 97995f7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Testing/PHPUnit/AbstractRectorTestCase.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,7 @@ private function processFilePath(string $filePath, bool $includeFixtureDirectory
278278

279279
// return changed file contents
280280
$changedFileContents = FileSystem::read($filePath);
281-
$rectorTestResult = new RectorTestResult($changedFileContents, $processResult);
282-
283-
// always reset so other test can run from fresh start
284-
$this->dynamicSourceLocatorProvider->reset();
285-
286-
return $rectorTestResult;
281+
return new RectorTestResult($changedFileContents, $processResult);
287282
}
288283

289284
private function createInputFilePath(string $fixtureFilePath): string

0 commit comments

Comments
 (0)
0