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

@@ -6,7 +6,7 @@ class databox_descriptionStructureTest extends PhraseanetPHPUnitAbstract
{
$structure = new \databox_descriptionStructure();
$array = array('name1' => 'value1', 'name2' => 'value2');
$array = ['name1' => 'value1', 'name2' => 'value2'];
$element = $this->provideDataboxFieldMock();
$element->expects($this->once())
@@ -15,7 +15,7 @@ class databox_descriptionStructureTest extends PhraseanetPHPUnitAbstract
$structure->add_element($element);
$this->assertEquals(array($array), $structure->toArray());
$this->assertEquals([$array], $structure->toArray());
}
private function provideDataboxFieldMock()