Skip to content

Commit

Permalink
made test runnable on php 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
phiamo committed Apr 28, 2015
1 parent 88aca3e commit a3a15b7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Tests/Form/Type/ExampleFormsTypeTest.php
Expand Up @@ -18,7 +18,7 @@ class ExampleFormsTypeTest extends AbstractDivLayoutTest
* @param ExampleFormsData $object
* @param array $data
*/
public function testSubmit(ExampleFormsData $object, $data = [])
public function testSubmit(ExampleFormsData $object, $data = array())
{
$form = $this->factory->create(new ExampleFormsType());
$form->submit($data);
Expand All @@ -32,11 +32,11 @@ public function testSubmit(ExampleFormsData $object, $data = [])
*/
public function provideParametersForSubmitTest()
{
return [
[
'object' => new ExampleFormsData('test', [1]),
'data' => ['textField' => 'test', 'checkboxesInline' => [1]]
]
];
return array(
array(
'object' => new ExampleFormsData('test', array(1)),
'data' => array('textField' => 'test', 'checkboxesInline' => array(1))
)
);
}
}

0 comments on commit a3a15b7

Please sign in to comment.