mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
Use short array declaration
This commit is contained in:
@@ -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());
|
||||
|
@@ -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']);
|
||||
}
|
||||
}
|
||||
|
@@ -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],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user