Skip to content

Commit

Permalink
Bring back PHP 5.3.x compatibility to fix for #15
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlundrigan committed Aug 13, 2014
1 parent 98c2c13 commit 0396e9d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/LdcUserProfileTest/Controller/ProfileControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ public function testControllerDispatchedWithValidFormDataWillCompleteAndRedirect

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

$postData = $req->getPost()->toArray();
$mockResult = new \stdClass();
Expand Down Expand Up @@ -135,8 +135,8 @@ public function testControllerDispatchedWithInvalidFormDataWillRenderForm()

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

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

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

$postData = $req->getPost()->toArray();
$mockResult = new \stdClass();
Expand Down

0 comments on commit 0396e9d

Please sign in to comment.