Skip to content

Commit

Permalink
remove spurious PlatformAgnosticAssertions leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Jun 3, 2021
1 parent 05a85e0 commit 2205b55
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions packages-tests/FileFormatter/ValueObject/NewLineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function getRealPath()
$realpath = realpath($this->filePath);

if ($realpath === false) {
throw ShouldNotHappenException();
throw new ShouldNotHappenException();
}

return $realpath;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 0 additions & 3 deletions rules-tests/PSR4/FileRelocationResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2205b55

Please sign in to comment.