Skip to content

Commit

Permalink
add E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Jun 26, 2023
1 parent 7afc492 commit 531943b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/Fixer/Phpdoc/PhpdocTypesOrderFixerTest.php
Expand Up @@ -431,6 +431,18 @@ public static function provideFixWithAlphaAlgorithmCases(): iterable
'<?php /** @return A&B<X|Y|Z>&C&D */',
'<?php /** @return A&D&B<X|Y|Z>&C */',
],
[
'<?php /** @var Closure<T>(T): T|null|string */',
'<?php /** @var string|Closure<T>(T): T|null */',
],
[
'<?php /** @var \Closure<T of Model, T2, T3>(A|T, T3, T2): (T|T2)|null|string */',
'<?php /** @var string|\Closure<T of Model, T2, T3>(T|A, T3, T2): (T2|T)|null */',
],
[
'<?php /** @var Closure<Closure_can_be_regular_class>|null|string */',
'<?php /** @var string|Closure<Closure_can_be_regular_class>|null */',
],
];
}

Expand Down

0 comments on commit 531943b

Please sign in to comment.