Skip to content

Commit

Permalink
[Test] Remove PropertyRenameFactoryTest.php (#3679)
Browse files Browse the repository at this point in the history
* [Test] Remove PropertyRenameFactoryTest.php

* rollback sleep

* [ci-review] Rector Rectify

* Revert rollback sleep

This reverts commit d314432.

* try non parallel

* remove paratest dependeny

* Revert Revert rollback sleep

This reverts commit 13463be.

---------

Co-authored-by: GitHub Action <actions@github.com>
  • Loading branch information
samsonasik and actions-user committed Apr 24, 2023
1 parent 10c36b0 commit 26bd748
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 118 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ jobs:

- uses: "ramsey/composer-install@v2"

- run: vendor/bin/paratest ${{ matrix.path }} --colors
- run: vendor/bin/phpunit ${{ matrix.path }} --colors
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"webmozart/assert": "^1.11"
},
"require-dev": {
"brianium/paratest": "^7.1.3",
"cweagans/composer-patches": "^1.7.2",
"icanhazstring/composer-unused": "^0.8.5",
"myclabs/php-enum": "^1.8.4",
Expand Down Expand Up @@ -119,7 +118,7 @@
"@check-cs",
"@phpstan",
"@docs",
"paratest"
"phpunit"
],
"check-cs": "vendor/bin/ecs check --ansi",
"fix-cs": "vendor/bin/ecs check --fix --ansi",
Expand Down
8 changes: 0 additions & 8 deletions packages/Testing/PHPUnit/AbstractRectorTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,6 @@ protected function doTestFile(string $fixtureFilePath): void
// write temp file
FileSystem::write($inputFilePath, $inputFileContents);

if (! is_file($inputFilePath)) {
// give enough time to write process
sleep(3);

// write temp file
FileSystem::write($inputFilePath, $inputFileContents);
}

$this->doTestFileMatchesExpectedContent($inputFilePath, $inputFileContents, $expectedFileContents, $fixtureFilePath);
}

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions rules/Naming/ValueObjectFactory/PropertyRenameFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
use Rector\Naming\ValueObject\PropertyRename;
use Rector\NodeNameResolver\NodeNameResolver;

/**
* @see \Rector\Tests\Naming\ValueObjectFactory\PropertyRenameFactory\PropertyRenameFactoryTest
*/
final class PropertyRenameFactory
{
public function __construct(
Expand Down

0 comments on commit 26bd748

Please sign in to comment.