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' => "