Skip to content

Commit

Permalink
Merge pull request #925 from ergebnis/fix/version
Browse files Browse the repository at this point in the history
Fix: Version
  • Loading branch information
localheinz committed Jun 16, 2024
2 parents ad825df + d807d0a commit d32cd50
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions test/Unit/ConstructsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,37 +62,37 @@ public static function provideScenarioWithoutClassyConstructs(): \Generator
{
$scenariosWithoutClassyConstructs = [
Test\Util\Scenario::create(
Test\Util\PhpVersion::fromInt(70300),
Test\Util\PhpVersion::fromInt(70400),
'no-php-file',
__DIR__ . '/../Fixture/NoClassy/NoPhpFile/source.md',
),
Test\Util\Scenario::create(
Test\Util\PhpVersion::fromInt(70300),
Test\Util\PhpVersion::fromInt(70400),
'with-anonymous-class',
__DIR__ . '/../Fixture/NoClassy/WithAnonymousClass/source.php',
),
Test\Util\Scenario::create(
Test\Util\PhpVersion::fromInt(70300),
Test\Util\PhpVersion::fromInt(70400),
'with-anonymous-class-and-multi-line-comments',
__DIR__ . '/../Fixture/NoClassy/WithAnonymousClassAndMultiLineComments/source.php',
),
Test\Util\Scenario::create(
Test\Util\PhpVersion::fromInt(70300),
Test\Util\PhpVersion::fromInt(70400),
'with-anonymous-class-and-shell-style-comments',
__DIR__ . '/../Fixture/NoClassy/WithAnonymousClassAndShellStyleComments/source.php',
),
Test\Util\Scenario::create(
Test\Util\PhpVersion::fromInt(70300),
Test\Util\PhpVersion::fromInt(70400),
'with-anonymous-class-and-single-line-comments',
__DIR__ . '/../Fixture/NoClassy/WithAnonymousClassAndSingleLineComments/source.php',
),
Test\Util\Scenario::create(
Test\Util\PhpVersion::fromInt(70300),
Test\Util\PhpVersion::fromInt(70400),
'with-class-keyword',
__DIR__ . '/../Fixture/NoClassy/WithClassKeyword/source.php',
),
Test\Util\Scenario::create(
Test\Util\PhpVersion::fromInt(70300),
Test\Util\PhpVersion::fromInt(70400),
'with-nothing',
__DIR__ . '/../Fixture/NoClassy/WithNothing/source.php',
),
Expand Down Expand Up @@ -234,7 +234,7 @@ private static function scenariosWithClassyConstructs(): array
{
return [
Test\Util\Scenario::create(
Test\Util\PhpVersion::fromInt(70300),
Test\Util\PhpVersion::fromInt(70400),
'php74-within-namespace',
__DIR__ . '/../Fixture/Classy/Php74/WithinNamespace/source.php',
Construct::fromName(Test\Fixture\Classy\Php74\WithinNamespace\Bar::class),
Expand All @@ -251,31 +251,31 @@ private static function scenariosWithClassyConstructs(): array
Construct::fromName(Test\Fixture\Classy\Php81\WithinNamespace\Qux::class),
),
Test\Util\Scenario::create(
Test\Util\PhpVersion::fromInt(70300),
Test\Util\PhpVersion::fromInt(70400),
'php74-within-namespace-and-shell-style-comments',
__DIR__ . '/../Fixture/Classy/Php74/WithinNamespaceAndShellStyleComments/source.php',
Construct::fromName(Test\Fixture\Classy\Php74\WithinNamespaceAndShellStyleComments\Bar::class),
Construct::fromName(Test\Fixture\Classy\Php74\WithinNamespaceAndShellStyleComments\Baz::class),
Construct::fromName(Test\Fixture\Classy\Php74\WithinNamespaceAndShellStyleComments\Foo::class),
),
Test\Util\Scenario::create(
Test\Util\PhpVersion::fromInt(70300),
Test\Util\PhpVersion::fromInt(70400),
'php74-within-namespace-and-single-line-comments',
__DIR__ . '/../Fixture/Classy/Php74/WithinNamespaceAndSingleLineComments/source.php',
Construct::fromName(Test\Fixture\Classy\Php74\WithinNamespaceAndSingleLineComments\Bar::class),
Construct::fromName(Test\Fixture\Classy\Php74\WithinNamespaceAndSingleLineComments\Baz::class),
Construct::fromName(Test\Fixture\Classy\Php74\WithinNamespaceAndSingleLineComments\Foo::class),
),
Test\Util\Scenario::create(
Test\Util\PhpVersion::fromInt(70300),
Test\Util\PhpVersion::fromInt(70400),
'php74-within-namespace-and-multi-line-comments',
__DIR__ . '/../Fixture/Classy/Php74/WithinNamespaceAndMultiLineComments/source.php',
Construct::fromName(Test\Fixture\Classy\Php74\WithinNamespaceAndMultiLineComments\Bar::class),
Construct::fromName(Test\Fixture\Classy\Php74\WithinNamespaceAndMultiLineComments\Baz::class),
Construct::fromName(Test\Fixture\Classy\Php74\WithinNamespaceAndMultiLineComments\Foo::class),
),
Test\Util\Scenario::create(
Test\Util\PhpVersion::fromInt(70300),
Test\Util\PhpVersion::fromInt(70400),
'php74-within-namespace-with-braces',
__DIR__ . '/../Fixture/Classy/Php74/WithinNamespaceWithBraces/source.php',
Construct::fromName(Test\Fixture\Classy\Php74\WithinNamespaceWithBraces\Bar::class),
Expand All @@ -292,7 +292,7 @@ private static function scenariosWithClassyConstructs(): array
Construct::fromName(Test\Fixture\Classy\Php81\WithinNamespaceWithBraces\Qux::class),
),
Test\Util\Scenario::create(
Test\Util\PhpVersion::fromInt(70300),
Test\Util\PhpVersion::fromInt(70400),
'php74-within-multiple-namespaces-with-braces',
__DIR__ . '/../Fixture/Classy/Php74/WithinMultipleNamespaces/source.php',
Construct::fromName(Test\Fixture\Classy\Php74\WithinMultipleNamespaces\Bar\Bar::class),
Expand All @@ -316,7 +316,7 @@ private static function scenariosWithClassyConstructs(): array
Construct::fromName(Test\Fixture\Classy\Php81\WithinMultipleNamespaces\Foo\Qux::class),
),
Test\Util\Scenario::create(
Test\Util\PhpVersion::fromInt(70300),
Test\Util\PhpVersion::fromInt(70400),
'php74-within-namespace-with-single-segment',
__DIR__ . '/../Fixture/Classy/Php74/WithinNamespaceWithSingleSegment/source.php',
Construct::fromName('Ergebnis\\Bar'),
Expand All @@ -333,7 +333,7 @@ private static function scenariosWithClassyConstructs(): array
Construct::fromName('Ergebnis\\Qux'),
),
Test\Util\Scenario::create(
Test\Util\PhpVersion::fromInt(70300),
Test\Util\PhpVersion::fromInt(70400),
'php74-with-methods-named-after-keywords',
__DIR__ . '/../Fixture/Classy/Php74/WithMethodsNamedAfterKeywords/source.php',
Construct::fromName(Test\Fixture\Classy\Php74\WithMethodsNamedAfterKeywords\Foo::class),
Expand All @@ -348,7 +348,7 @@ private static function scenariosWithClassyConstructs(): array
* @see https://github.com/zendframework/zend-file/pull/41
*/
Test\Util\Scenario::create(
Test\Util\PhpVersion::fromInt(70300),
Test\Util\PhpVersion::fromInt(70400),
'php74-with-methods-named-after-keywords-and-return-type',
__DIR__ . '/../Fixture/Classy/Php74/WithMethodsNamedAfterKeywordsAndReturnType/source.php',
Construct::fromName(Test\Fixture\Classy\Php74\WithMethodsNamedAfterKeywordsAndReturnType\Foo::class),
Expand All @@ -360,7 +360,7 @@ private static function scenariosWithClassyConstructs(): array
Construct::fromName(Test\Fixture\Classy\Php81\WithMethodsNamedAfterKeywordsAndReturnType\Foo::class),
),
Test\Util\Scenario::create(
Test\Util\PhpVersion::fromInt(70300),
Test\Util\PhpVersion::fromInt(70400),
'php74-without-namespace',
__DIR__ . '/../Fixture/Classy/Php74/WithoutNamespace/source.php',
Construct::fromName('Bar'),
Expand All @@ -377,23 +377,23 @@ private static function scenariosWithClassyConstructs(): array
Construct::fromName('Qux'),
),
Test\Util\Scenario::create(
Test\Util\PhpVersion::fromInt(70300),
Test\Util\PhpVersion::fromInt(70400),
'php74-without-namespace-and-multi-line-comments',
__DIR__ . '/../Fixture/Classy/Php74/WithoutNamespaceAndMultiLineComments/source.php',
Construct::fromName('Quux'),
Construct::fromName('Quuz'),
Construct::fromName('Qux'),
),
Test\Util\Scenario::create(
Test\Util\PhpVersion::fromInt(70300),
Test\Util\PhpVersion::fromInt(70400),
'php74-without-namespace-and-shell-line-comments',
__DIR__ . '/../Fixture/Classy/Php74/WithoutNamespaceAndShellStyleComments/source.php',
Construct::fromName('Corge'),
Construct::fromName('Garply'),
Construct::fromName('Grault'),
),
Test\Util\Scenario::create(
Test\Util\PhpVersion::fromInt(70300),
Test\Util\PhpVersion::fromInt(70400),
'php74-without-namespace-and-single-line-comments',
__DIR__ . '/../Fixture/Classy/Php74/WithoutNamespaceAndSingleLineComments/source.php',
Construct::fromName('Fred'),
Expand Down

0 comments on commit d32cd50

Please sign in to comment.