Add PhpUnitTestCaseStaticMethodCallsFixer

by @Slamdunk

Some issues have been detected in this pull request

Issues that can be fixed by applying a patch

Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:

$ curl https://fabbot.io/patch/FriendsOfPHP/PHP-CS-Fixer/3476/2d5aa28597c90207e66d88c80e6d2564d8b173ca/cs.diff | patch -p0
diff -ru src/Fixer/PhpUnit/PhpUnitTestCaseStaticMethodCallsFixer.php src/Fixer/PhpUnit/PhpUnitTestCaseStaticMethodCallsFixer.php
--- src/Fixer/PhpUnit/PhpUnitTestCaseStaticMethodCallsFixer.php	2018-04-16 07:15:07.196222534 +0000
+++ src/Fixer/PhpUnit/PhpUnitTestCaseStaticMethodCallsFixer.php	2018-04-16 07:15:10.624143934 +0000
@@ -44,13 +44,13 @@
      */
     const CALL_TYPE_STATIC = 'static';
 
-    private $allowedValues = [
+    private $allowedValues = array(
         self::CALL_TYPE_THIS => true,
         self::CALL_TYPE_SELF => true,
         self::CALL_TYPE_STATIC => true,
-    ];
+    );
 
-    private $staticMethods = [
+    private $staticMethods = array(
         // Assert methods
         'anything' => true,
         'arrayHasKey' => true,
@@ -226,13 +226,13 @@
         'setUpBeforeClass' => true,
         'tearDownAfterClass' => true,
         'throwException' => true,
-    ];
+    );
 
-    private $conversionMap = [
-        self::CALL_TYPE_THIS => [[T_OBJECT_OPERATOR, '->'], [T_VARIABLE, '$this']],
-        self::CALL_TYPE_SELF => [[T_DOUBLE_COLON, '::'], [T_STRING, 'self']],
-        self::CALL_TYPE_STATIC => [[T_DOUBLE_COLON, '::'], [T_STATIC, 'static']],
-    ];
+    private $conversionMap = array(
+        self::CALL_TYPE_THIS => array(array(T_OBJECT_OPERATOR, '->'), array(T_VARIABLE, '$this')),
+        self::CALL_TYPE_SELF => array(array(T_DOUBLE_COLON, '::'), array(T_STRING, 'self')),
+        self::CALL_TYPE_STATIC => array(array(T_DOUBLE_COLON, '::'), array(T_STATIC, 'static')),
+    );
 
     /**
      * {@inheritdoc}
@@ -241,7 +241,7 @@
     {
         return new FixerDefinition(
             'Calls to `PHPUnit\Framework\TestCase` static methods must all be of the same type, either `$this->`, `self::` or `static::`.',
-            [
+            array(
                 new CodeSample(
                     '<?php
 final class MyTest extends \PHPUnit_Framework_TestCase
@@ -255,7 +255,7 @@
 }
 '
                 ),
-            ],
+            ),
             null,
             'Risky when PHPUnit methods are overridden or not accessible, or when project has PHPUnit incompatibilities.'
         );
@@ -266,7 +266,7 @@
      */
     public function isCandidate(Tokens $tokens)
     {
-        return $tokens->isAllTokenKindsFound([T_CLASS, T_STRING]);
+        return $tokens->isAllTokenKindsFound(array(T_CLASS, T_STRING));
     }
 
     /**
@@ -294,15 +294,15 @@
     {
         $thisFixer = $this;
 
-        return new FixerConfigurationResolver([
+        return new FixerConfigurationResolver(array(
             (new FixerOptionBuilder('call_type', 'The call type to use for referring to PHPUnit methods.'))
-                ->setAllowedTypes(['string'])
+                ->setAllowedTypes(array('string'))
                 ->setAllowedValues(array_keys($this->allowedValues))
                 ->setDefault('static')
                 ->getOption(),
             (new FixerOptionBuilder('methods', 'Dictionary of `method` => `call_type` values that differ from the default strategy.'))
-                ->setAllowedTypes(['array'])
-                ->setAllowedValues([static function ($option) use ($thisFixer) {
+                ->setAllowedTypes(array('array'))
+                ->setAllowedValues(array(static function ($option) use ($thisFixer) {
                     foreach ($option as $method => $value) {
                         if (!isset($thisFixer->staticMethods[$method])) {
                             throw new InvalidOptionsException(
@@ -327,10 +327,10 @@
                     }
 
                     return true;
-                }])
-                ->setDefault([])
+                }))
+                ->setDefault(array())
                 ->getOption(),
-        ]);
+        ));
     }
 
     /**
@@ -341,13 +341,13 @@
     private function findPhpUnitClasses(Tokens $tokens)
     {
         $phpUnitTestCaseIndicator = new PhpUnitTestCaseIndicator();
-        $phpunitClasses = [];
+        $phpunitClasses = array();
 
         for ($index = 0, $limit = $tokens->count() - 1; $index < $limit; ++$index) {
             if ($tokens[$index]->isGivenKind(T_CLASS) && $phpUnitTestCaseIndicator->isPhpUnitClass($tokens, $index)) {
-                $index = $tokens->getNextTokenOfKind($index, ['{']);
+                $index = $tokens->getNextTokenOfKind($index, array('{'));
                 $endIndex = $tokens->findBlockEnd(Tokens::BLOCK_TYPE_CURLY_BRACE, $index);
-                $phpunitClasses[] = [$index, $endIndex];
+                $phpunitClasses[] = array($index, $endIndex);
                 $index = $endIndex;
             }
         }
@@ -400,15 +400,15 @@
      */
     private function needsConversion(Tokens $tokens, $operatorIndex, $referenceIndex, $callType)
     {
-        if ($tokens[$operatorIndex]->equals([T_DOUBLE_COLON, '::']) && $tokens[$referenceIndex]->equals([T_STATIC, 'static'])) {
+        if ($tokens[$operatorIndex]->equals(array(T_DOUBLE_COLON, '::')) && $tokens[$referenceIndex]->equals(array(T_STATIC, 'static'))) {
             return self::CALL_TYPE_STATIC !== $callType;
         }
 
-        if ($tokens[$operatorIndex]->equals([T_OBJECT_OPERATOR, '->']) && $tokens[$referenceIndex]->equals([T_VARIABLE, '$this'])) {
+        if ($tokens[$operatorIndex]->equals(array(T_OBJECT_OPERATOR, '->')) && $tokens[$referenceIndex]->equals(array(T_VARIABLE, '$this'))) {
             return self::CALL_TYPE_THIS !== $callType;
         }
 
-        if ($tokens[$operatorIndex]->equals([T_DOUBLE_COLON, '::']) && $tokens[$referenceIndex]->equals([T_STRING, 'self'])) {
+        if ($tokens[$operatorIndex]->equals(array(T_DOUBLE_COLON, '::')) && $tokens[$referenceIndex]->equals(array(T_STRING, 'self'))) {
             return self::CALL_TYPE_SELF !== $callType;
         }
 
@@ -424,9 +424,9 @@
      */
     private function isInsideStaticFunction(Tokens $tokens, TokensAnalyzer $analyzer, $index)
     {
-        $functionIndex = $tokens->getPrevTokenOfKind($index, [[T_FUNCTION]]);
+        $functionIndex = $tokens->getPrevTokenOfKind($index, array(array(T_FUNCTION)));
         while ($analyzer->isLambda($functionIndex)) {
-            $openingCurlyBraceIndex = $tokens->getNextTokenOfKind($functionIndex, ['{']);
+            $openingCurlyBraceIndex = $tokens->getNextTokenOfKind($functionIndex, array('{'));
             $closingCurlyBraceIndex = $tokens->findBlockEnd(Tokens::BLOCK_TYPE_CURLY_BRACE, $openingCurlyBraceIndex);
 
             if ($closingCurlyBraceIndex > $index) {
@@ -436,13 +436,13 @@
                 }
             }
 
-            $functionIndex = $tokens->getPrevTokenOfKind($functionIndex, [[T_FUNCTION]]);
+            $functionIndex = $tokens->getPrevTokenOfKind($functionIndex, array(array(T_FUNCTION)));
         }
 
         $prev = $functionIndex;
         do {
             $prev = $tokens->getPrevMeaningfulToken($prev);
-        } while ($tokens[$prev]->isGivenKind([T_PUBLIC, T_PROTECTED, T_PRIVATE, T_FINAL]));
+        } while ($tokens[$prev]->isGivenKind(array(T_PUBLIC, T_PROTECTED, T_PRIVATE, T_FINAL)));
 
         return $tokens[$prev]->isGivenKind(T_STATIC);
     }
diff -ru tests/Console/Command/SelfUpdateCommandTest.php tests/Console/Command/SelfUpdateCommandTest.php
--- tests/Console/Command/SelfUpdateCommandTest.php	2018-04-16 07:15:07.356218866 +0000
+++ tests/Console/Command/SelfUpdateCommandTest.php	2018-04-16 07:15:09.461170600 +0000
@@ -82,10 +82,10 @@
 
     public function provideCommandNameCases()
     {
-        return [
-            ['self-update'],
-            ['selfupdate'],
-        ];
+        return array(
+            array('self-update'),
+            array('selfupdate'),
+        );
     }
 
     /**
@@ -170,65 +170,65 @@
 
 OUTPUT;
 
-        return [
+        return array(
             // no new version available
-            [Application::VERSION, Application::VERSION, [], true, $currentContents, $upToDateDisplay],
-            [Application::VERSION, Application::VERSION, [], false, $currentContents, $upToDateDisplay],
-            [Application::VERSION, Application::VERSION, ['--force' => true], true, $currentContents, $upToDateDisplay],
-            [Application::VERSION, Application::VERSION, ['-f' => true], false, $currentContents, $upToDateDisplay],
-            [Application::VERSION, Application::VERSION, ['--force' => true], true, $currentContents, $upToDateDisplay],
-            [Application::VERSION, Application::VERSION, ['-f' => true], false, $currentContents, $upToDateDisplay],
+            array(Application::VERSION, Application::VERSION, array(), true, $currentContents, $upToDateDisplay),
+            array(Application::VERSION, Application::VERSION, array(), false, $currentContents, $upToDateDisplay),
+            array(Application::VERSION, Application::VERSION, array('--force' => true), true, $currentContents, $upToDateDisplay),
+            array(Application::VERSION, Application::VERSION, array('-f' => true), false, $currentContents, $upToDateDisplay),
+            array(Application::VERSION, Application::VERSION, array('--force' => true), true, $currentContents, $upToDateDisplay),
+            array(Application::VERSION, Application::VERSION, array('-f' => true), false, $currentContents, $upToDateDisplay),
 
             // new minor version available
-            [$minor, $minor, [], true, $minorContents, $newMinorDisplay],
-            [$minor, $minor, ['--force' => true], true, $minorContents, $newMinorDisplay],
-            [$minor, $minor, ['-f' => true], true, $minorContents, $newMinorDisplay],
-            [$minor, $minor, [], false, $minorContents, $newMinorDisplay],
-            [$minor, $minor, ['--force' => true], false, $minorContents, $newMinorDisplay],
-            [$minor, $minor, ['-f' => true], false, $minorContents, $newMinorDisplay],
+            array($minor, $minor, array(), true, $minorContents, $newMinorDisplay),
+            array($minor, $minor, array('--force' => true), true, $minorContents, $newMinorDisplay),
+            array($minor, $minor, array('-f' => true), true, $minorContents, $newMinorDisplay),
+            array($minor, $minor, array(), false, $minorContents, $newMinorDisplay),
+            array($minor, $minor, array('--force' => true), false, $minorContents, $newMinorDisplay),
+            array($minor, $minor, array('-f' => true), false, $minorContents, $newMinorDisplay),
 
             // new major version available
-            [$major, Application::VERSION, [], true, $currentContents, $majorInfoNoMinorDisplay],
-            [$major, Application::VERSION, [], false, $currentContents, $majorInfoNoMinorDisplay],
-            [$major, Application::VERSION, ['--force' => true], true, $majorContents, $newMajorDisplay],
-            [$major, Application::VERSION, ['-f' => true], false, $majorContents, $newMajorDisplay],
-            [$major, Application::VERSION, ['--force' => true], true, $majorContents, $newMajorDisplay],
-            [$major, Application::VERSION, ['-f' => true], false, $majorContents, $newMajorDisplay],
+            array($major, Application::VERSION, array(), true, $currentContents, $majorInfoNoMinorDisplay),
+            array($major, Application::VERSION, array(), false, $currentContents, $majorInfoNoMinorDisplay),
+            array($major, Application::VERSION, array('--force' => true), true, $majorContents, $newMajorDisplay),
+            array($major, Application::VERSION, array('-f' => true), false, $majorContents, $newMajorDisplay),
+            array($major, Application::VERSION, array('--force' => true), true, $majorContents, $newMajorDisplay),
+            array($major, Application::VERSION, array('-f' => true), false, $majorContents, $newMajorDisplay),
 
             // new minor version and new major version available
-            [$major, $minor, [], true, $minorContents, $majorInfoNewMinorDisplay],
-            [$major, $minor, [], false, $minorContents, $majorInfoNewMinorDisplay],
-            [$major, $minor, ['--force' => true], true, $majorContents, $newMajorDisplay],
-            [$major, $minor, ['-f' => true], false, $majorContents, $newMajorDisplay],
-            [$major, $minor, ['--force' => true], true, $majorContents, $newMajorDisplay],
-            [$major, $minor, ['-f' => true], false, $majorContents, $newMajorDisplay],
+            array($major, $minor, array(), true, $minorContents, $majorInfoNewMinorDisplay),
+            array($major, $minor, array(), false, $minorContents, $majorInfoNewMinorDisplay),
+            array($major, $minor, array('--force' => true), true, $majorContents, $newMajorDisplay),
+            array($major, $minor, array('-f' => true), false, $majorContents, $newMajorDisplay),
+            array($major, $minor, array('--force' => true), true, $majorContents, $newMajorDisplay),
+            array($major, $minor, array('-f' => true), false, $majorContents, $newMajorDisplay),
 
             // weird/unexpected versions
-            ['v0.1.0', 'v0.1.0', [], true, $currentContents, $upToDateDisplay],
-            ['v0.1.0', 'v0.1.0', [], false, $currentContents, $upToDateDisplay],
-            ['v0.1.0', 'v0.1.0', ['--force' => true], true, $currentContents, $upToDateDisplay],
-            ['v0.1.0', 'v0.1.0', ['-f' => true], false, $currentContents, $upToDateDisplay],
-            ['v0.1.0', 'v0.1.0', ['--force' => true], true, $currentContents, $upToDateDisplay],
-            ['v0.1.0', 'v0.1.0', ['-f' => true], false, $currentContents, $upToDateDisplay],
-            ['v0.1.0', null, [], true, $currentContents, $upToDateDisplay],
-            ['v0.1.0', null, [], false, $currentContents, $upToDateDisplay],
-            ['v0.1.0', null, ['--force' => true], true, $currentContents, $upToDateDisplay],
-            ['v0.1.0', null, ['-f' => true], false, $currentContents, $upToDateDisplay],
-            ['v0.1.0', null, ['--force' => true], true, $currentContents, $upToDateDisplay],
-            ['v0.1.0', null, ['-f' => true], false, $currentContents, $upToDateDisplay],
-            ['v0.1.0', Application::VERSION, [], true, $currentContents, $upToDateDisplay],
-            ['v0.1.0', Application::VERSION, [], false, $currentContents, $upToDateDisplay],
-            ['v0.1.0', Application::VERSION, ['--force' => true], true, $currentContents, $upToDateDisplay],
-            ['v0.1.0', Application::VERSION, ['-f' => true], false, $currentContents, $upToDateDisplay],
-            ['v0.1.0', Application::VERSION, ['--force' => true], true, $currentContents, $upToDateDisplay],
-            ['v0.1.0', Application::VERSION, ['-f' => true], false, $currentContents, $upToDateDisplay],
-            [Application::VERSION, 'v0.1.0', [], true, $currentContents, $upToDateDisplay],
-            [Application::VERSION, 'v0.1.0', [], false, $currentContents, $upToDateDisplay],
-            [Application::VERSION, 'v0.1.0', ['--force' => true], true, $currentContents, $upToDateDisplay],
-            [Application::VERSION, 'v0.1.0', ['-f' => true], false, $currentContents, $upToDateDisplay],
-            [Application::VERSION, 'v0.1.0', ['--force' => true], true, $currentContents, $upToDateDisplay],
-            [Application::VERSION, 'v0.1.0', ['-f' => true], false, $currentContents, $upToDateDisplay],
-        ];
+            array('v0.1.0', 'v0.1.0', array(), true, $currentContents, $upToDateDisplay),
+            array('v0.1.0', 'v0.1.0', array(), false, $currentContents, $upToDateDisplay),
+            array('v0.1.0', 'v0.1.0', array('--force' => true), true, $currentContents, $upToDateDisplay),
+            array('v0.1.0', 'v0.1.0', array('-f' => true), false, $currentContents, $upToDateDisplay),
+            array('v0.1.0', 'v0.1.0', array('--force' => true), true, $currentContents, $upToDateDisplay),
+            array('v0.1.0', 'v0.1.0', array('-f' => true), false, $currentContents, $upToDateDisplay),
+            array('v0.1.0', null, array(), true, $currentContents, $upToDateDisplay),
+            array('v0.1.0', null, array(), false, $currentContents, $upToDateDisplay),
+            array('v0.1.0', null, array('--force' => true), true, $currentContents, $upToDateDisplay),
+            array('v0.1.0', null, array('-f' => true), false, $currentContents, $upToDateDisplay),
+            array('v0.1.0', null, array('--force' => true), true, $currentContents, $upToDateDisplay),
+            array('v0.1.0', null, array('-f' => true), false, $currentContents, $upToDateDisplay),
+            array('v0.1.0', Application::VERSION, array(), true, $currentContents, $upToDateDisplay),
+            array('v0.1.0', Application::VERSION, array(), false, $currentContents, $upToDateDisplay),
+            array('v0.1.0', Application::VERSION, array('--force' => true), true, $currentContents, $upToDateDisplay),
+            array('v0.1.0', Application::VERSION, array('-f' => true), false, $currentContents, $upToDateDisplay),
+            array('v0.1.0', Application::VERSION, array('--force' => true), true, $currentContents, $upToDateDisplay),
+            array('v0.1.0', Application::VERSION, array('-f' => true), false, $currentContents, $upToDateDisplay),
+            array(Application::VERSION, 'v0.1.0', array(), true, $currentContents, $upToDateDisplay),
+            array(Application::VERSION, 'v0.1.0', array(), false, $currentContents, $upToDateDisplay),
+            array(Application::VERSION, 'v0.1.0', array('--force' => true), true, $currentContents, $upToDateDisplay),
+            array(Application::VERSION, 'v0.1.0', array('-f' => true), false, $currentContents, $upToDateDisplay),
+            array(Application::VERSION, 'v0.1.0', array('--force' => true), true, $currentContents, $upToDateDisplay),
+            array(Application::VERSION, 'v0.1.0', array('-f' => true), false, $currentContents, $upToDateDisplay),
+        );
     }
 
     /**
@@ -285,26 +285,26 @@
 
     public function provideExecuteWhenNotAbleToGetLatestVersionsCases()
     {
-        return [
-            [false, false, [], true],
-            [false, false, ['--force' => true], true],
-            [false, false, ['-f' => true], true],
-            [false, false, [], false],
-            [false, false, ['--force' => true], false],
-            [false, false, ['-f' => true], false],
-            [true, false, [], true],
-            [true, false, ['--force' => true], true],
-            [true, false, ['-f' => true], true],
-            [true, false, [], false],
-            [true, false, ['--force' => true], false],
-            [true, false, ['-f' => true], false],
-            [false, true, [], true],
-            [false, true, ['--force' => true], true],
-            [false, true, ['-f' => true], true],
-            [false, true, [], false],
-            [false, true, ['--force' => true], false],
-            [false, true, ['-f' => true], false],
-        ];
+        return array(
+            array(false, false, array(), true),
+            array(false, false, array('--force' => true), true),
+            array(false, false, array('-f' => true), true),
+            array(false, false, array(), false),
+            array(false, false, array('--force' => true), false),
+            array(false, false, array('-f' => true), false),
+            array(true, false, array(), true),
+            array(true, false, array('--force' => true), true),
+            array(true, false, array('-f' => true), true),
+            array(true, false, array(), false),
+            array(true, false, array('--force' => true), false),
+            array(true, false, array('-f' => true), false),
+            array(false, true, array(), true),
+            array(false, true, array('--force' => true), true),
+            array(false, true, array('-f' => true), true),
+            array(false, true, array(), false),
+            array(false, true, array('--force' => true), false),
+            array(false, true, array('-f' => true), false),
+        );
     }
 
     /**
@@ -332,14 +332,14 @@
 
     public function provideExecuteWhenNotInstalledAsPharCases()
     {
-        return [
-            [[], true],
-            [['--force' => true], true],
-            [['-f' => true], true],
-            [[], false],
-            [['--force' => true], false],
-            [['-f' => true], false],
-        ];
+        return array(
+            array(array(), true),
+            array(array('--force' => true), true),
+            array(array('-f' => true), true),
+            array(array(), false),
+            array(array('--force' => true), false),
+            array(array('-f' => true), false),
+        );
     }
 
     private function execute(Command $command, array $input, $decorated)
@@ -347,14 +347,14 @@
         $application = new Application();
         $application->add($command);
 
-        $input = ['command' => $command->getName()] + $input;
+        $input = array('command' => $command->getName()) + $input;
 
         $commandTester = new CommandTester($command);
 
         $realPath = $_SERVER['argv'][0];
         $_SERVER['argv'][0] = $this->getToolPath();
 
-        $commandTester->execute($input, ['decorated' => $decorated]);
+        $commandTester->execute($input, array('decorated' => $decorated));
 
         $_SERVER['argv'][0] = $realPath;
 
diff -ru tests/Fixer/Alias/NoAliasFunctionsFixerTest.php tests/Fixer/Alias/NoAliasFunctionsFixerTest.php
--- tests/Fixer/Alias/NoAliasFunctionsFixerTest.php	2018-04-16 07:15:07.516215197 +0000
+++ tests/Fixer/Alias/NoAliasFunctionsFixerTest.php	2018-04-16 07:15:10.161154550 +0000
@@ -40,25 +40,25 @@
         /** @var $aliases string[] */
         $aliases = $this->getStaticAttribute(\PhpCsFixer\Fixer\Alias\NoAliasFunctionsFixer::class, 'aliases');
 
-        $cases = [];
+        $cases = array();
         foreach ($aliases as $alias => $master) {
             // valid cases
-            $cases[] = ["<?php \$smth->${alias}(\$a);"];
-            $cases[] = ["<?php {$alias}Smth(\$a);"];
-            $cases[] = ["<?php smth_${alias}(\$a);"];
-            $cases[] = ["<?php new ${alias}(\$a);"];
-            $cases[] = ["<?php new Smth\\${alias}(\$a);"];
-            $cases[] = ["<?php Smth\\${alias}(\$a);"];
-            $cases[] = ["<?php namespace\\${alias}(\$a);"];
-            $cases[] = ["<?php Smth::${alias}(\$a);"];
-            $cases[] = ["<?php new ${alias}\\smth(\$a);"];
-            $cases[] = ["<?php ${alias}::smth(\$a);"];
-            $cases[] = ["<?php ${alias}\\smth(\$a);"];
-            $cases[] = ['<?php "SELECT ... '.$alias.'(\$a) ...";'];
-            $cases[] = ['<?php "SELECT ... '.strtoupper($alias).'($a) ...";'];
-            $cases[] = ["<?php 'test'.'${alias}' . 'in concatenation';"];
-            $cases[] = ['<?php "test" . "'.$alias.'"."in concatenation";'];
-            $cases[] = [
+            $cases[] = array("<?php \$smth->${alias}(\$a);");
+            $cases[] = array("<?php {$alias}Smth(\$a);");
+            $cases[] = array("<?php smth_${alias}(\$a);");
+            $cases[] = array("<?php new ${alias}(\$a);");
+            $cases[] = array("<?php new Smth\\${alias}(\$a);");
+            $cases[] = array("<?php Smth\\${alias}(\$a);");
+            $cases[] = array("<?php namespace\\${alias}(\$a);");
+            $cases[] = array("<?php Smth::${alias}(\$a);");
+            $cases[] = array("<?php new ${alias}\\smth(\$a);");
+            $cases[] = array("<?php ${alias}::smth(\$a);");
+            $cases[] = array("<?php ${alias}\\smth(\$a);");
+            $cases[] = array('<?php "SELECT ... '.$alias.'(\$a) ...";');
+            $cases[] = array('<?php "SELECT ... '.strtoupper($alias).'($a) ...";');
+            $cases[] = array("<?php 'test'.'${alias}' . 'in concatenation';");
+            $cases[] = array('<?php "test" . "'.$alias.'"."in concatenation";');
+            $cases[] = array(
                 '<?php
 class '.ucfirst($alias).'ing
 {
@@ -76,57 +76,57 @@
     const '.$alias.' = "'.$alias.'";
 }
 ',
-            ];
+            );
 
             // cases to be fixed
-            $cases[] = [
+            $cases[] = array(
                 "<?php ${master}(\$a);",
                 "<?php ${alias}(\$a);",
-            ];
-            $cases[] = [
+            );
+            $cases[] = array(
                 "<?php \\${master}(\$a);",
                 "<?php \\${alias}(\$a);",
-            ];
-            $cases[] = [
+            );
+            $cases[] = array(
                 "<?php \$ref = &${master}(\$a);",
                 "<?php \$ref = &${alias}(\$a);",
-            ];
-            $cases[] = [
+            );
+            $cases[] = array(
                 "<?php \$ref = &\\${master}(\$a);",
                 "<?php \$ref = &\\${alias}(\$a);",
-            ];
-            $cases[] = [
+            );
+            $cases[] = array(
                 "<?php ${master}
                             (\$a);",
                 "<?php ${alias}
                             (\$a);",
-            ];
-            $cases[] = [
+            );
+            $cases[] = array(
                 "<?php /* foo */ ${master} /** bar */ (\$a);",
                 "<?php /* foo */ ${alias} /** bar */ (\$a);",
-            ];
-            $cases[] = [
+            );
+            $cases[] = array(
                 "<?php a(${master}());",
                 "<?php a(${alias}());",
-            ];
-            $cases[] = [
+            );
+            $cases[] = array(
                 "<?php a(\\${master}());",
                 "<?php a(\\${alias}());",
-            ];
+            );
         }
 
         // static case to fix - in case previous generation is broken
-        $cases[] = [
+        $cases[] = array(
             '<?php is_int($a);',
             '<?php is_integer($a);',
-        ];
+        );
 
-        $cases[] = [
+        $cases[] = array(
             '<?php $b=is_int(count(implode($b,$a)));',
             '<?php $b=is_integer(sizeof(join($b,$a)));',
-        ];
+        );
 
-        $cases[] = [
+        $cases[] = array(
             '<?php
 interface JoinInterface
 {
@@ -150,7 +150,7 @@
         new ScopeB\join(mt_rand(0, 100));
     }
 }',
-        ];
+        );
 
         return $cases;
     }
diff -ru tests/Fixer/Alias/RandomApiMigrationFixerTest.php tests/Fixer/Alias/RandomApiMigrationFixerTest.php
--- tests/Fixer/Alias/RandomApiMigrationFixerTest.php	2018-04-16 07:15:07.659211918 +0000
+++ tests/Fixer/Alias/RandomApiMigrationFixerTest.php	2018-04-16 07:15:09.949159411 +0000
@@ -29,7 +29,7 @@
         $this->expectException(\PhpCsFixer\ConfigurationException\InvalidFixerConfigurationException::class);
         $this->expectExceptionMessageRegExp('#^\[random_api_migration\] Invalid configuration: Function "is_null" is not handled by the fixer\.$#');
 
-        $this->fixer->configure(['replacements' => ['is_null' => 'random_int']]);
+        $this->fixer->configure(array('replacements' => array('is_null' => 'random_int')));
     }
 
     public function testConfigureCheckReplacementType()
@@ -37,7 +37,7 @@
         $this->expectException(\PhpCsFixer\ConfigurationException\InvalidFixerConfigurationException::class);
         $this->expectExceptionMessageRegExp('#^\[random_api_migration\] Invalid configuration: Replacement for function "rand" must be a string, "NULL" given\.$#');
 
-        $this->fixer->configure(['replacements' => ['rand' => null]]);
+        $this->fixer->configure(array('replacements' => array('rand' => null)));
     }
 
     /**
@@ -46,24 +46,24 @@
      */
     public function testLegacyConfigure()
     {
-        $this->fixer->configure(['rand' => 'random_int']);
+        $this->fixer->configure(array('rand' => 'random_int'));
 
         $this->assertSame(
-            ['replacements' => [
-                'rand' => ['alternativeName' => 'random_int', 'argumentCount' => [0, 2]], ],
-            ],
+            array('replacements' => array(
+                'rand' => array('alternativeName' => 'random_int', 'argumentCount' => array(0, 2)), ),
+            ),
             $this->getObjectAttribute($this->fixer, 'configuration')
         );
     }
 
     public function testConfigure()
     {
-        $this->fixer->configure(['replacements' => ['rand' => 'random_int']]);
+        $this->fixer->configure(array('replacements' => array('rand' => 'random_int')));
 
         $this->assertSame(
-            ['replacements' => [
-                'rand' => ['alternativeName' => 'random_int', 'argumentCount' => [0, 2]], ],
-            ],
+            array('replacements' => array(
+                'rand' => array('alternativeName' => 'random_int', 'argumentCount' => array(0, 2)), ),
+            ),
             $this->getObjectAttribute($this->fixer, 'configuration')
         );
     }
@@ -75,7 +75,7 @@
      *
      * @dataProvider provideFixCases
      */
-    public function testFix($expected, $input = null, array $config = [])
+    public function testFix($expected, $input = null, array $config = array())
     {
         $this->fixer->configure($config);
 
@@ -87,13 +87,13 @@
      */
     public function provideFixCases()
     {
-        return [
-            [
+        return array(
+            array(
                 '<?php random_int(0, getrandmax());',
                 '<?php rand();',
-                ['replacements' => ['rand' => 'random_int']],
-            ],
-            [
+                array('replacements' => array('rand' => 'random_int')),
+            ),
+            array(
                 '<?php random_int#1
                 #2
                 (0, getrandmax()#3
@@ -106,24 +106,24 @@
                 #4
                 )#5
                 ;',
-                ['replacements' => ['rand' => 'random_int']],
-            ],
-            ['<?php $smth->srand($a);'],
-            ['<?php srandSmth($a);'],
-            ['<?php smth_srand($a);'],
-            ['<?php new srand($a);'],
-            ['<?php new Smth\\srand($a);'],
-            ['<?php Smth\\srand($a);'],
-            ['<?php namespace\\srand($a);'],
-            ['<?php Smth::srand($a);'],
-            ['<?php new srand\\smth($a);'],
-            ['<?php srand::smth($a);'],
-            ['<?php srand\\smth($a);'],
-            ['<?php "SELECT ... srand(\$a) ...";'],
-            ['<?php "SELECT ... SRAND($a) ...";'],
-            ["<?php 'test'.'srand' . 'in concatenation';"],
-            ['<?php "test" . "srand"."in concatenation";'],
-            [
+                array('replacements' => array('rand' => 'random_int')),
+            ),
+            array('<?php $smth->srand($a);'),
+            array('<?php srandSmth($a);'),
+            array('<?php smth_srand($a);'),
+            array('<?php new srand($a);'),
+            array('<?php new Smth\\srand($a);'),
+            array('<?php Smth\\srand($a);'),
+            array('<?php namespace\\srand($a);'),
+            array('<?php Smth::srand($a);'),
+            array('<?php new srand\\smth($a);'),
+            array('<?php srand::smth($a);'),
+            array('<?php srand\\smth($a);'),
+            array('<?php "SELECT ... srand(\$a) ...";'),
+            array('<?php "SELECT ... SRAND($a) ...";'),
+            array("<?php 'test'.'srand' . 'in concatenation';"),
+            array('<?php "test" . "srand"."in concatenation";'),
+            array(
                 '<?php
 class SrandClass
 {
@@ -140,37 +140,37 @@
     const srand = "srand";
 }
 ',
-            ],
-            ['<?php mt_srand($a);', '<?php srand($a);'],
-            ['<?php \\mt_srand($a);', '<?php \\srand($a);'],
-            ['<?php $a = &mt_srand($a);', '<?php $a = &srand($a);'],
-            ['<?php $a = &\\mt_srand($a);', '<?php $a = &\\srand($a);'],
-            ['<?php /* foo */ mt_srand /** bar */ ($a);', '<?php /* foo */ srand /** bar */ ($a);'],
-            ['<?php a(mt_getrandmax ());', '<?php a(getrandmax ());'],
-            ['<?php a(mt_rand());', '<?php a(rand());'],
-            ['<?php a(mt_srand());', '<?php a(srand());'],
-            ['<?php a(\\mt_srand());', '<?php a(\\srand());'],
-            [
+            ),
+            array('<?php mt_srand($a);', '<?php srand($a);'),
+            array('<?php \\mt_srand($a);', '<?php \\srand($a);'),
+            array('<?php $a = &mt_srand($a);', '<?php $a = &srand($a);'),
+            array('<?php $a = &\\mt_srand($a);', '<?php $a = &\\srand($a);'),
+            array('<?php /* foo */ mt_srand /** bar */ ($a);', '<?php /* foo */ srand /** bar */ ($a);'),
+            array('<?php a(mt_getrandmax ());', '<?php a(getrandmax ());'),
+            array('<?php a(mt_rand());', '<?php a(rand());'),
+            array('<?php a(mt_srand());', '<?php a(srand());'),
+            array('<?php a(\\mt_srand());', '<?php a(\\srand());'),
+            array(
                 '<?php rand(rand($a));',
                 null,
-                ['replacements' => ['rand' => 'random_int']],
-            ],
-            [
+                array('replacements' => array('rand' => 'random_int')),
+            ),
+            array(
                 '<?php random_int($d, random_int($a,$b));',
                 '<?php rand($d, rand($a,$b));',
-                ['replacements' => ['rand' => 'random_int']],
-            ],
-            [
+                array('replacements' => array('rand' => 'random_int')),
+            ),
+            array(
                 '<?php random_int($a, \Other\Scope\mt_rand($a));',
                 '<?php rand($a, \Other\Scope\mt_rand($a));',
-                ['replacements' => ['rand' => 'random_int']],
-            ],
-            [
+                array('replacements' => array('rand' => 'random_int')),
+            ),
+            array(
                 '<?php $a = random_int(1,2) + random_int(3,4);',
                 '<?php $a = rand(1,2) + mt_rand(3,4);',
-                ['replacements' => ['rand' => 'random_int', 'mt_rand' => 'random_int']],
-            ],
-            [
+                array('replacements' => array('rand' => 'random_int', 'mt_rand' => 'random_int')),
+            ),
+            array(
                 '<?php
                 interface Test
                 {
@@ -178,8 +178,8 @@
                     public function &rand();
                 }',
                 null,
-                ['replacements' => ['rand' => 'random_int']],
-            ],
-        ];
+                array('replacements' => array('rand' => 'random_int')),
+            ),
+        );
     }
 }
diff -ru tests/Fixer/LanguageConstruct/IsNullFixerTest.php tests/Fixer/LanguageConstruct/IsNullFixerTest.php
--- tests/Fixer/LanguageConstruct/IsNullFixerTest.php	2018-04-16 07:15:07.804208593 +0000
+++ tests/Fixer/LanguageConstruct/IsNullFixerTest.php	2018-04-16 07:15:09.756163836 +0000
@@ -30,7 +30,7 @@
 
         $this->expectException(\PhpCsFixer\ConfigurationException\InvalidFixerConfigurationException::class);
         $this->expectExceptionMessage('[is_null] Invalid configuration: The option "yoda" does not exist.');
-        $fixer->configure(['yoda' => true]);
+        $fixer->configure(array('yoda' => true));
     }
 
     /**
@@ -43,7 +43,7 @@
 
         $this->expectException(\PhpCsFixer\ConfigurationException\InvalidFixerConfigurationException::class);
         $this->expectExceptionMessage('[is_null] Invalid configuration: The option "use_yoda_style" with value -1 is expected to be of type "bool", but is of type "integer".');
-        $fixer->configure(['use_yoda_style' => -1]);
+        $fixer->configure(array('use_yoda_style' => -1));
     }
 
     /**
@@ -53,7 +53,7 @@
     public function testCorrectConfiguration()
     {
         $fixer = new IsNullFixer();
-        $fixer->configure(['use_yoda_style' => false]);
+        $fixer->configure(array('use_yoda_style' => false));
 
         $configuration = $this->getObjectAttribute($fixer, 'configuration');
         $this->assertFalse($configuration['use_yoda_style']);
@@ -96,136 +96,136 @@
 ;
 FIXED;
 
-        return [
-            ['<?php $x = "is_null";'],
+        return array(
+            array('<?php $x = "is_null";'),
 
-            ['<?php $x = ClassA::is_null(json_decode($x));'],
-            ['<?php $x = ScopeA\\is_null(json_decode($x));'],
-            ['<?php $x = namespace\\is_null(json_decode($x));'],
-            ['<?php $x = $object->is_null(json_decode($x));'],
-
-            ['<?php $x = new \\is_null(json_decode($x));'],
-            ['<?php $x = new is_null(json_decode($x));'],
-            ['<?php $x = new ScopeB\\is_null(json_decode($x));'],
-
-            ['<?php is_nullSmth(json_decode($x));'],
-            ['<?php smth_is_null(json_decode($x));'],
-
-            ['<?php "SELECT ... is_null(json_decode($x)) ...";'],
-            ['<?php "SELECT ... is_null(json_decode($x)) ...";'],
-            ['<?php "test" . "is_null" . "in concatenation";'],
-
-            ['<?php $x = null === json_decode($x);', '<?php $x = is_null(json_decode($x));'],
-            ['<?php $x = null !== json_decode($x);', '<?php $x = !is_null(json_decode($x));'],
-            ['<?php $x = null !== json_decode($x);', '<?php $x = ! is_null(json_decode($x));'],
-            ['<?php $x = null !== json_decode($x);', '<?php $x = ! is_null( json_decode($x) );'],
-
-            ['<?php $x = null === json_decode($x);', '<?php $x = \\is_null(json_decode($x));'],
-            ['<?php $x = null !== json_decode($x);', '<?php $x = !\\is_null(json_decode($x));'],
-            ['<?php $x = null !== json_decode($x);', '<?php $x = ! \\is_null(json_decode($x));'],
-            ['<?php $x = null !== json_decode($x);', '<?php $x = ! \\is_null( json_decode($x) );'],
-
-            ['<?php $x = null === json_decode($x).".dist";', '<?php $x = is_null(json_decode($x)).".dist";'],
-            ['<?php $x = null !== json_decode($x).".dist";', '<?php $x = !is_null(json_decode($x)).".dist";'],
-            ['<?php $x = null === json_decode($x).".dist";', '<?php $x = \\is_null(json_decode($x)).".dist";'],
-            ['<?php $x = null !== json_decode($x).".dist";', '<?php $x = !\\is_null(json_decode($x)).".dist";'],
+            array('<?php $x = ClassA::is_null(json_decode($x));'),
+            array('<?php $x = ScopeA\\is_null(json_decode($x));'),
+            array('<?php $x = namespace\\is_null(json_decode($x));'),
+            array('<?php $x = $object->is_null(json_decode($x));'),
+
+            array('<?php $x = new \\is_null(json_decode($x));'),
+            array('<?php $x = new is_null(json_decode($x));'),
+            array('<?php $x = new ScopeB\\is_null(json_decode($x));'),
+
+            array('<?php is_nullSmth(json_decode($x));'),
+            array('<?php smth_is_null(json_decode($x));'),
+
+            array('<?php "SELECT ... is_null(json_decode($x)) ...";'),
+            array('<?php "SELECT ... is_null(json_decode($x)) ...";'),
+            array('<?php "test" . "is_null" . "in concatenation";'),
+
+            array('<?php $x = null === json_decode($x);', '<?php $x = is_null(json_decode($x));'),
+            array('<?php $x = null !== json_decode($x);', '<?php $x = !is_null(json_decode($x));'),
+            array('<?php $x = null !== json_decode($x);', '<?php $x = ! is_null(json_decode($x));'),
+            array('<?php $x = null !== json_decode($x);', '<?php $x = ! is_null( json_decode($x) );'),
+
+            array('<?php $x = null === json_decode($x);', '<?php $x = \\is_null(json_decode($x));'),
+            array('<?php $x = null !== json_decode($x);', '<?php $x = !\\is_null(json_decode($x));'),
+            array('<?php $x = null !== json_decode($x);', '<?php $x = ! \\is_null(json_decode($x));'),
+            array('<?php $x = null !== json_decode($x);', '<?php $x = ! \\is_null( json_decode($x) );'),
+
+            array('<?php $x = null === json_decode($x).".dist";', '<?php $x = is_null(json_decode($x)).".dist";'),
+            array('<?php $x = null !== json_decode($x).".dist";', '<?php $x = !is_null(json_decode($x)).".dist";'),
+            array('<?php $x = null === json_decode($x).".dist";', '<?php $x = \\is_null(json_decode($x)).".dist";'),
+            array('<?php $x = null !== json_decode($x).".dist";', '<?php $x = !\\is_null(json_decode($x)).".dist";'),
 
-            [$multiLinePatternFixed, $multiLinePatternToFix],
-            [
+            array($multiLinePatternFixed, $multiLinePatternToFix),
+            array(
                 '<?php $x = /**/null === /**/ /** x*//**//** */json_decode($x)/***//*xx*/;',
                 '<?php $x = /**/is_null/**/ /** x*/(/**//** */json_decode($x)/***/)/*xx*/;',
-            ],
-            [
+            ),
+            array(
                 '<?php $x = null === (null === $x ? z(null === $y) : z(null === $z));',
                 '<?php $x = is_null(is_null($x) ? z(is_null($y)) : z(is_null($z)));',
-            ],
-            [
+            ),
+            array(
                 '<?php $x = null === ($x = array());',
                 '<?php $x = is_null($x = array());',
-            ],
-            [
+            ),
+            array(
                 '<?php null === a(null === a(null === a(null === b())));',
                 '<?php \is_null(a(\is_null(a(\is_null(a(\is_null(b())))))));',
-            ],
-            [
+            ),
+            array(
                 '<?php $d= null === ($a)/*=?*/?>',
                 "<?php \$d= is_null(\n(\$a)/*=?*/\n)?>",
-            ],
-            [
+            ),
+            array(
                 '<?php is_null()?>',
-            ],
+            ),
 
             // edge cases: is_null wrapped into a binary operations
-            [
+            array(
                 '<?php $result = (false === (null === $a)); ?>',
                 '<?php $result = (false === is_null($a)); ?>',
-            ],
-            [
+            ),
+            array(
                 '<?php $result = ((null === $a) === false); ?>',
                 '<?php $result = (is_null($a) === false); ?>',
-            ],
-            [
+            ),
+            array(
                 '<?php $result = (false !== (null === $a)); ?>',
                 '<?php $result = (false !== is_null($a)); ?>',
-            ],
-            [
+            ),
+            array(
                 '<?php $result = ((null === $a) !== false); ?>',
                 '<?php $result = (is_null($a) !== false); ?>',
-            ],
-            [
+            ),
+            array(
                 '<?php $result = (false == (null === $a)); ?>',
                 '<?php $result = (false == is_null($a)); ?>',
-            ],
-            [
+            ),
+            array(
                 '<?php $result = ((null === $a) == false); ?>',
                 '<?php $result = (is_null($a) == false); ?>',
-            ],
-            [
+            ),
+            array(
                 '<?php $result = (false != (null === $a)); ?>',
                 '<?php $result = (false != is_null($a)); ?>',
-            ],
-            [
+            ),
+            array(
                 '<?php $result = ((null === $a) != false); ?>',
                 '<?php $result = (is_null($a) != false); ?>',
-            ],
-            [
+            ),
+            array(
                 '<?php $result = (false <> (null === $a)); ?>',
                 '<?php $result = (false <> is_null($a)); ?>',
-            ],
-            [
+            ),
+            array(
                 '<?php $result = ((null === $a) <> false); ?>',
                 '<?php $result = (is_null($a) <> false); ?>',
-            ],
-            [
+            ),
+            array(
                 '<?php if (null === $x) echo "foo"; ?>',
                 '<?php if (is_null($x)) echo "foo"; ?>',
-            ],
+            ),
             // check with logical operator
-            [
+            array(
                 '<?php if (null === $x && $y) echo "foo"; ?>',
                 '<?php if (is_null($x) && $y) echo "foo"; ?>',
-            ],
-            [
+            ),
+            array(
                 '<?php if (null === $x || $y) echo "foo"; ?>',
                 '<?php if (is_null($x) || $y) echo "foo"; ?>',
-            ],
-            [
+            ),
+            array(
                 '<?php if (null === $x xor $y) echo "foo"; ?>',
                 '<?php if (is_null($x) xor $y) echo "foo"; ?>',
-            ],
-            [
+            ),
+            array(
                 '<?php if (null === $x and $y) echo "foo"; ?>',
                 '<?php if (is_null($x) and $y) echo "foo"; ?>',
-            ],
-            [
+            ),
+            array(
                 '<?php if (null === $x or $y) echo "foo"; ?>',
                 '<?php if (is_null($x) or $y) echo "foo"; ?>',
-            ],
-            [
+            ),
+            array(
                 '<?php if ((null === $u or $v) and ($w || null === $x) xor (null !== $y and $z)) echo "foo"; ?>',
                 '<?php if ((is_null($u) or $v) and ($w || is_null($x)) xor (!is_null($y) and $z)) echo "foo"; ?>',
-            ],
-        ];
+            ),
+        );
     }
 
     /**
@@ -239,32 +239,32 @@
      */
     public function testNonYodaFix($expected, $input)
     {
-        $this->fixer->configure(['use_yoda_style' => false]);
+        $this->fixer->configure(array('use_yoda_style' => false));
         $this->doTest($expected, $input);
     }
 
     public function provideNonYodaFixCases()
     {
-        return [
-            [
+        return array(
+            array(
                 '<?php $x = $y === null;', '<?php $x = is_null($y);',
-            ],
-            [
+            ),
+            array(
                 '<?php $b = a(a(a(b() === null) === null) === null) === null;',
                 '<?php $b = \is_null(a(\is_null(a(\is_null(a(\is_null(b())))))));',
-            ],
-            [
+            ),
+            array(
                 '<?php if ($x === null && $y) echo "foo";',
                 '<?php if (is_null($x) && $y) echo "foo";',
-            ],
-            [
+            ),
+            array(
                 '<?php $x = ($x = array()) === null;',
                 '<?php $x = is_null($x = array());',
-            ],
-            [
+            ),
+            array(
                 '<?php while (($nextMaxId = $myTimeline->getNextMaxId()) === null);',
                 '<?php while (is_null($nextMaxId = $myTimeline->getNextMaxId()));',
-            ],
-        ];
+            ),
+        );
     }
 }
diff -ru tests/Fixer/PhpUnit/PhpUnitTestCaseStaticMethodCallsFixerTest.php tests/Fixer/PhpUnit/PhpUnitTestCaseStaticMethodCallsFixerTest.php
--- tests/Fixer/PhpUnit/PhpUnitTestCaseStaticMethodCallsFixerTest.php	2018-04-16 07:15:07.952205200 +0000
+++ tests/Fixer/PhpUnit/PhpUnitTestCaseStaticMethodCallsFixerTest.php	2018-04-16 07:15:09.566168193 +0000
@@ -34,14 +34,14 @@
         $defaultProperties = $fixerRefClass->getDefaultProperties();
         $staticMethods = $defaultProperties['staticMethods'];
 
-        $missingMethods = [];
+        $missingMethods = array();
         foreach ($updatedStaticMethodsList as $method) {
             if ($method->isStatic() && !isset($staticMethods[$method->name])) {
                 $missingMethods[] = $method->name;
             }
         }
 
-        $this->assertSame([], $missingMethods, sprintf('The following static methods from "%s" are missing from "%s::$staticMethods"', TestCase::class, PhpUnitTestCaseStaticMethodCallsFixer::class));
+        $this->assertSame(array(), $missingMethods, sprintf('The following static methods from "%s" are missing from "%s::$staticMethods"', TestCase::class, PhpUnitTestCaseStaticMethodCallsFixer::class));
     }
 
     public function testWrongConfigTypeForMethodsKey()
@@ -49,7 +49,7 @@
         $this->expectException(\PhpCsFixer\ConfigurationException\InvalidFixerConfigurationException::class);
         $this->expectExceptionMessageRegExp('/Unexpected "methods" key, expected any of ".*", got "integer#123"\.$/');
 
-        $this->fixer->configure(['methods' => [123 => 1]]);
+        $this->fixer->configure(array('methods' => array(123 => 1)));
     }
 
     public function testWrongConfigTypeForMethodsValue()
@@ -57,7 +57,7 @@
         $this->expectException(\PhpCsFixer\ConfigurationException\InvalidFixerConfigurationException::class);
         $this->expectExceptionMessageRegExp('/Unexpected value for method "assertSame", expected any of ".*", got "integer#123"\.$/');
 
-        $this->fixer->configure(['methods' => ['assertSame' => 123]]);
+        $this->fixer->configure(array('methods' => array('assertSame' => 123)));
     }
 
     /**
@@ -67,7 +67,7 @@
      *
      * @dataProvider provideTestFixCases
      */
-    public function testFix($expected, $input = null, array $config = [])
+    public function testFix($expected, $input = null, array $config = array())
     {
         $this->fixer->configure($config);
         $this->doTest($expected, $input);
@@ -75,8 +75,8 @@
 
     public function provideTestFixCases()
     {
-        return [
-            [
+        return array(
+            array(
                 <<<'EOF'
 <?php
 class MyTest extends \PHPUnit_Framework_TestCase
@@ -103,8 +103,8 @@
 }
 EOF
                 ,
-            ],
-            [
+            ),
+            array(
                 <<<'EOF'
 <?php
 class MyTest extends \PHPUnit_Framework_TestCase
@@ -151,8 +151,8 @@
 }
 EOF
                 ,
-            ],
-            [
+            ),
+            array(
                 <<<'EOF'
 <?php
 class MyTest extends \PHPUnit_Framework_TestCase
@@ -191,8 +191,8 @@
 }
 EOF
                 ,
-            ],
-            [
+            ),
+            array(
                 <<<'EOF'
 <?php
 class MyTest extends \PHPUnit_Framework_TestCase
@@ -231,9 +231,9 @@
 }
 EOF
                 ,
-                ['call_type' => PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_THIS],
-            ],
-            [
+                array('call_type' => PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_THIS),
+            ),
+            array(
                 <<<'EOF'
 <?php
 class MyTest extends \PHPUnit_Framework_TestCase
@@ -260,9 +260,9 @@
 }
 EOF
                 ,
-                ['call_type' => PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_SELF],
-            ],
-            [
+                array('call_type' => PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_SELF),
+            ),
+            array(
                 <<<'EOF'
 <?php
 class MyTest extends \PHPUnit_Framework_TestCase
@@ -299,12 +299,12 @@
 }
 EOF
                 ,
-                [
+                array(
                     'call_type' => PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_THIS,
-                    'methods' => ['setUpBeforeClass' => PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_STATIC],
-                ],
-            ],
-            [
+                    'methods' => array('setUpBeforeClass' => PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_STATIC),
+                ),
+            ),
+            array(
                 <<<'EOF'
 <?php
 class MyTest extends \PHPUnit_Framework_TestCase
@@ -352,11 +352,11 @@
 EOF
                 ,
                 null,
-                [
+                array(
                     'call_type' => PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_THIS,
-                ],
-            ],
-            [
+                ),
+            ),
+            array(
                 <<<'EOF'
 <?php
 class MyTest extends \PHPUnit_Framework_TestCase
@@ -429,10 +429,10 @@
 }
 EOF
                 ,
-                [
+                array(
                     'call_type' => PhpUnitTestCaseStaticMethodCallsFixer::CALL_TYPE_THIS,
-                ],
-            ],
-        ];
+                ),
+            ),
+        );
     }
 }

0
Common Typos

0
File Permissions