Skip to content

Commit 0396e9d

Browse files
committed
Bring back PHP 5.3.x compatibility to fix for #15
1 parent 98c2c13 commit 0396e9d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/LdcUserProfileTest/Controller/ProfileControllerTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ public function testControllerDispatchedWithValidFormDataWillCompleteAndRedirect
106106

107107
$req = $this->controller->getRequest();
108108
$req->setMethod(Request::METHOD_POST);
109-
$req->getPost()->set('foo', ['bar' => 'baz']);
110-
$req->getPost()->set('zfcuser', ['id' => 42]);
109+
$req->getPost()->set('foo', array('bar' => 'baz'));
110+
$req->getPost()->set('zfcuser', array('id' => 42));
111111

112112
$postData = $req->getPost()->toArray();
113113
$mockResult = new \stdClass();
@@ -135,8 +135,8 @@ public function testControllerDispatchedWithInvalidFormDataWillRenderForm()
135135

136136
$req = $this->controller->getRequest();
137137
$req->setMethod(Request::METHOD_POST);
138-
$req->getPost()->set('foo', ['bar' => 'baz']);
139-
$req->getPost()->set('zfcuser', ['id' => 42]);
138+
$req->getPost()->set('foo', array('bar' => 'baz'));
139+
$req->getPost()->set('zfcuser', array('id' => 42));
140140

141141
$postData = $req->getPost()->toArray();
142142
$mockResult = new \stdClass();
@@ -162,8 +162,8 @@ public function testControllerWillRenderFormWhenSaveCallFails()
162162

163163
$req = $this->controller->getRequest();
164164
$req->setMethod(Request::METHOD_POST);
165-
$req->getPost()->set('foo', ['bar' => 'baz']);
166-
$req->getPost()->set('zfcuser', ['id' => 42]);
165+
$req->getPost()->set('foo', array('bar' => 'baz'));
166+
$req->getPost()->set('zfcuser', array('id' => 42));
167167

168168
$postData = $req->getPost()->toArray();
169169
$mockResult = new \stdClass();

0 commit comments

Comments
 (0)