Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed May 13, 2021
1 parent 9305fdf commit 74d6f9b
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions scoper.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,23 +142,6 @@ function (string $filePath, string $prefix, string $content): string {
return $content;
},


function (string $filePath, string $prefix, string $content): string {
if (
! Strings::endsWith($filePath, 'packages/Testing/PHPUnit/AbstractTestCase.php')
&& ! Strings::endsWith($filePath, 'packages/Testing/PHPUnit/AbstractRectorTestCase.php')
) {
return $content;
}

// un-prefix
return Strings::replace(
$content,
'#' . $prefix . '\\\\PHPUnit\\\\Framework\\\\TestCase#',
'PHPUnit\Framework\TestCase'
);
},

// fixes https://github.com/rectorphp/rector/issues/6010 + test case prefix
function (string $filePath, string $prefix, string $content): string {
// @see https://regex101.com/r/bA1nQa/1
Expand Down

0 comments on commit 74d6f9b

Please sign in to comment.