Use short array declaration

This commit is contained in:
Romain Neutron
2013-11-18 11:58:12 +01:00
parent 2898b317c4
commit 56b373ee6e
723 changed files with 8350 additions and 8352 deletions

View File

@@ -23,7 +23,7 @@ class ComposerSetupTest extends \PHPUnit_Framework_TestCase
$finder = new PhpExecutableFinder();
$php = $finder->find();
$process = ProcessBuilder::create(array($php, $target, '--version'))->getProcess();
$process = ProcessBuilder::create([$php, $target, '--version'])->getProcess();
$process->run();
$this->assertTrue($process->isSuccessful());

View File

@@ -27,6 +27,6 @@ class BuilderTest extends \PHPUnit_Framework_TestCase
$builder = new Builder($compiler, $filesystem);
$builder->build(array( __FILE__ => __DIR__ . '/output.css'));
$builder->build([ __FILE__ => __DIR__ . '/output.css']);
}
}

View File

@@ -20,11 +20,11 @@ class CamelizerTest extends \PHPUnit_Framework_TestCase
public function provideStrings()
{
return array(
array('string-test', '-', 'stringTest', false),
array('string test', ' ', 'stringTest', false),
array('string_test', '_', 'stringTest', false),
array('string#test', '#', 'StringTest', true),
);
return [
['string-test', '-', 'stringTest', false],
['string test', ' ', 'stringTest', false],
['string_test', '_', 'stringTest', false],
['string#test', '#', 'StringTest', true],
];
}
}