diff --git a/dev-tools/composer-alias-update.php b/dev-tools/composer-alias-update.php deleted file mode 100644 index 1b616870e97..00000000000 --- a/dev-tools/composer-alias-update.php +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env php - convertAppVersionToAliasedVersion(PhpCsFixer\Console\Application::VERSION), - ]; -} - -file_put_contents(COMPOSER_JSON_FILE, json_encode($composerJson, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT)."\n"); diff --git a/tests/AutoReview/ComposerTest.php b/tests/AutoReview/ComposerTest.php deleted file mode 100644 index e8ca1c41ffa..00000000000 --- a/tests/AutoReview/ComposerTest.php +++ /dev/null @@ -1,53 +0,0 @@ - - * Dariusz Rumiński - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - -namespace PhpCsFixer\Tests\AutoReview; - -use PhpCsFixer\Console\Application; -use PhpCsFixer\Tests\TestCase; - -/** - * @author Dariusz Rumiński - * - * @internal - * - * @coversNothing - * @group auto-review - * @group covers-nothing - */ -final class ComposerTest extends TestCase -{ - public function testBranchAlias(): void - { - $composerJson = json_decode(file_get_contents(__DIR__.'/../../composer.json'), true); - - if (!isset($composerJson['extra']['branch-alias'])) { - $this->addToAssertionCount(1); // composer.json doesn't contain branch alias, all good! - - return; - } - - static::assertSame( - ['dev-master' => $this->convertAppVersionToAliasedVersion(Application::VERSION)], - $composerJson['extra']['branch-alias'] - ); - } - - private function convertAppVersionToAliasedVersion(string $version): string - { - $parts = explode('.', $version, 3); - - return sprintf('%d.%d-dev', $parts[0], $parts[1]); - } -}