From 3c065c93853382d137e76259fd58d8ef3c6bf878 Mon Sep 17 00:00:00 2001 From: James Buncle Date: Thu, 2 Apr 2026 08:45:13 +0100 Subject: [PATCH] Add value false-positive regressions --- tests/run.php | 101 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) diff --git a/tests/run.php b/tests/run.php index 1ae1a0d..1e3a060 100644 --- a/tests/run.php +++ b/tests/run.php @@ -1053,6 +1053,103 @@ function testSplitAndGroupedNamespaceConstantDeclarationsRemainEquivalent(): voi assertSameValue('Split and grouped namespace constant declarations with the same values should remain PATCH.', 'PATCH', $diff->diff('HEAD', 'WC')->getIncrement()); } + +function testInterfaceParentAliasRenamingDoesNotBumpVersion(): void { + $root = createRepository('interface-parent-alias-rename-equivalence', [ + 'src/Contract.php' => <<<'PHP' +diff('HEAD', 'WC')->getIncrement()); +} + +function testClassConstantFetchAliasRenamingDoesNotBumpVersion(): void { + $root = createRepository('class-const-fetch-alias-rename-equivalence', [ + 'src/Values.php' => <<<'PHP' +diff('HEAD', 'WC')->getIncrement()); +} + +function testGroupedAndUngroupedConstImportsRemainEquivalentInNamespaceConstants(): void { + $root = createRepository('grouped-namespace-const-import-equivalence', [ + 'src/Constants.php' => <<<'PHP' +diff('HEAD', 'WC')->getIncrement()); +} + +function testGroupedAndUngroupedConstImportsRemainEquivalentInClassConstants(): void { + $root = createRepository('grouped-class-const-import-equivalence', [ + 'src/Values.php' => <<<'PHP' +diff('HEAD', 'WC')->getIncrement()); +} + function testIncludePathsRestrictTheSurface(): void { $root = createRepository('include-paths', [ 'src/Foo.php' => "