mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 10:23:17 +00:00
Use short array declaration
This commit is contained in:
@@ -8,24 +8,24 @@ class FtpEditorTest extends EditorTestCase
|
||||
{
|
||||
public function provideDataForXMLUpdatesFromForm()
|
||||
{
|
||||
return array(
|
||||
array('<?xml version="1.0" encoding="UTF-8"?>
|
||||
return [
|
||||
['<?xml version="1.0" encoding="UTF-8"?>
|
||||
<tasksettings>
|
||||
<proxy></proxy><proxyport></proxyport></tasksettings>
|
||||
', '<?xml version="1.0" encoding="UTF-8"?>
|
||||
<tasksettings>
|
||||
</tasksettings>', array()
|
||||
),
|
||||
array('<?xml version="1.0" encoding="UTF-8"?>
|
||||
</tasksettings>', []
|
||||
],
|
||||
['<?xml version="1.0" encoding="UTF-8"?>
|
||||
<tasksettings>
|
||||
<proxy>1234</proxy>
|
||||
<proxyport>5678</proxyport>
|
||||
</tasksettings>
|
||||
', '<?xml version="1.0" encoding="UTF-8"?>
|
||||
<tasksettings><proxy>12</proxy><proxyport>8</proxyport>
|
||||
</tasksettings>', array('proxy' => 1234, 'proxyport' => 5678)
|
||||
),
|
||||
array('<?xml version="1.0" encoding="UTF-8"?>
|
||||
</tasksettings>', ['proxy' => 1234, 'proxyport' => 5678]
|
||||
],
|
||||
['<?xml version="1.0" encoding="UTF-8"?>
|
||||
<tasksettings>
|
||||
<customtag>value</customtag>
|
||||
<proxy></proxy>
|
||||
@@ -34,9 +34,9 @@ class FtpEditorTest extends EditorTestCase
|
||||
', '<?xml version="1.0" encoding="UTF-8"?>
|
||||
<tasksettings>
|
||||
<customtag>value</customtag>
|
||||
</tasksettings>', array()
|
||||
),
|
||||
);
|
||||
</tasksettings>', []
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
protected function getEditor()
|
||||
|
||||
Reference in New Issue
Block a user