From 2205b55832a35567757518b366988cfb9ff753ea Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sat, 29 May 2021 09:25:17 +0200 Subject: [PATCH] remove spurious PlatformAgnosticAssertions leftovers --- packages-tests/FileFormatter/ValueObject/NewLineTest.php | 2 -- packages/FileSystemRector/ValueObject/AddedFileWithContent.php | 2 +- .../MoveValueObjectsToValueObjectDirectoryRectorTest.php | 1 - rules-tests/PSR4/FileRelocationResolverTest.php | 3 --- 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/packages-tests/FileFormatter/ValueObject/NewLineTest.php b/packages-tests/FileFormatter/ValueObject/NewLineTest.php index dd9f2f6f9c8..0edd04d6301 100644 --- a/packages-tests/FileFormatter/ValueObject/NewLineTest.php +++ b/packages-tests/FileFormatter/ValueObject/NewLineTest.php @@ -3,11 +3,9 @@ namespace Rector\Tests\FileFormatter\ValueObject; use Iterator; -use PHPUnit\Framework\TestCase; use Rector\FileFormatter\Exception\InvalidNewLineStringException; use Rector\FileFormatter\ValueObject\NewLine; use Rector\Testing\PHPUnit\AbstractTestCase; -use Rector\Testing\PHPUnit\PlatformAgnosticAssertions; use Symplify\SmartFileSystem\SmartFileInfo; final class NewLineTest extends AbstractTestCase diff --git a/packages/FileSystemRector/ValueObject/AddedFileWithContent.php b/packages/FileSystemRector/ValueObject/AddedFileWithContent.php index fd34fdc186e..a3907f13fed 100644 --- a/packages/FileSystemRector/ValueObject/AddedFileWithContent.php +++ b/packages/FileSystemRector/ValueObject/AddedFileWithContent.php @@ -26,7 +26,7 @@ public function getRealPath() $realpath = realpath($this->filePath); if ($realpath === false) { - throw ShouldNotHappenException(); + throw new ShouldNotHappenException(); } return $realpath; diff --git a/rules-tests/Autodiscovery/Rector/Class_/MoveValueObjectsToValueObjectDirectoryRector/MoveValueObjectsToValueObjectDirectoryRectorTest.php b/rules-tests/Autodiscovery/Rector/Class_/MoveValueObjectsToValueObjectDirectoryRector/MoveValueObjectsToValueObjectDirectoryRectorTest.php index 7fc81436909..ebb66ec7f3f 100644 --- a/rules-tests/Autodiscovery/Rector/Class_/MoveValueObjectsToValueObjectDirectoryRector/MoveValueObjectsToValueObjectDirectoryRectorTest.php +++ b/rules-tests/Autodiscovery/Rector/Class_/MoveValueObjectsToValueObjectDirectoryRector/MoveValueObjectsToValueObjectDirectoryRectorTest.php @@ -7,7 +7,6 @@ use Iterator; use Rector\FileSystemRector\ValueObject\AddedFileWithContent; use Rector\Testing\PHPUnit\AbstractRectorTestCase; -use Rector\Testing\PHPUnit\PlatformAgnosticAssertions; use Symplify\SmartFileSystem\SmartFileInfo; use Symplify\SmartFileSystem\SmartFileSystem; diff --git a/rules-tests/PSR4/FileRelocationResolverTest.php b/rules-tests/PSR4/FileRelocationResolverTest.php index a758614da89..0c385e13b3f 100644 --- a/rules-tests/PSR4/FileRelocationResolverTest.php +++ b/rules-tests/PSR4/FileRelocationResolverTest.php @@ -7,14 +7,11 @@ use Iterator; use Rector\PSR4\FileRelocationResolver; use Rector\Testing\PHPUnit\AbstractTestCase; -use Rector\Testing\PHPUnit\PlatformAgnosticAssertions; use Rector\Tests\PSR4\Source\SomeFile; use Symplify\SmartFileSystem\SmartFileInfo; final class FileRelocationResolverTest extends AbstractTestCase { - use PlatformAgnosticAssertions; - private FileRelocationResolver $fileRelocationResolver; protected function setUp(): void