@@ -1477,11 +1477,11 @@ public function testByLengthWithoutUses()
14771477 }
14781478
14791479 /**
1480+ * @param string $expected
1481+ * @param string|null $input
1482+ *
14801483 * @dataProvider provide70CasesByLength
14811484 * @requires PHP 7.0
1482- *
1483- * @param mixed $expected
1484- * @param mixed $input
14851485 */
14861486 public function test70ByLength ($ expected , $ input = null )
14871487 {
@@ -1535,8 +1535,8 @@ public function provide70CasesByLength()
15351535 * @dataProvider provide70TypesOrderAndLength
15361536 * @requires PHP 7.0
15371537 *
1538- * @param mixed $expected
1539- * @param mixed $input
1538+ * @param string $expected
1539+ * @param string|null $input
15401540 */
15411541 public function test70TypesOrderAndLength ($ expected , $ input = null )
15421542 {
@@ -1594,14 +1594,15 @@ public function provide70TypesOrderAndLength()
15941594 * @dataProvider provide70TypesOrderAndAlphabet
15951595 * @requires PHP 7.0
15961596 *
1597- * @param mixed $expected
1598- * @param mixed $input
1597+ * @param string $expected
1598+ * @param string|null $input
1599+ * @param string[] $importOrder
15991600 */
1600- public function test70TypesOrderAndAlphabet ($ expected , $ input = null )
1601+ public function test70TypesOrderAndAlphabet ($ expected , $ input = null , array $ importOrder = null )
16011602 {
16021603 $ this ->fixer ->configure (array (
16031604 'sortAlgorithm ' => OrderedImportsFixer::SORT_ALPHA ,
1604- 'importsOrder ' => array (OrderedImportsFixer:: IMPORT_TYPE_CLASS , OrderedImportsFixer:: IMPORT_TYPE_CONST , OrderedImportsFixer:: IMPORT_TYPE_FUNCTION ) ,
1605+ 'importsOrder ' => $ importOrder ,
16051606 ));
16061607
16071608 $ this ->doTest ($ expected , $ input );
@@ -1655,6 +1656,7 @@ public function provide70TypesOrderAndAlphabet()
16551656use const some\b\{ConstE};
16561657use function some\a\{fn_a, fn_b};
16571658 ' ,
1659+ array (OrderedImportsFixer::IMPORT_TYPE_CLASS , OrderedImportsFixer::IMPORT_TYPE_CONST , OrderedImportsFixer::IMPORT_TYPE_FUNCTION ),
16581660 ),
16591661 );
16601662 }
0 commit comments