Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

AbstractControllerTestCase fails with multidimensional params array #6636

Closed
ahoppen opened this issue Sep 4, 2014 · 1 comment
Closed
Assignees
Milestone

Comments

@ahoppen
Copy link
Contributor

ahoppen commented Sep 4, 2014

If a multidimensional params array is passed to \Zend\Test\PHPUnit\Controller\AbstractControllerTestCase->dispatch with PUT as HTTP-Method AbstractControllerTestCase fails with error message "Array to string conversion”.

For example the following line fails:
$this->dispatch('/tests', 'PUT', array('a' => array('b' => 1)));

@Ocramius Ocramius self-assigned this Dec 30, 2014
@Ocramius Ocramius added this to the 2.3.4 milestone Dec 30, 2014
Ocramius pushed a commit that referenced this issue Dec 30, 2014
…al params array

Added test method testCanHandleMultidimensionalParams to \ZendTest\Test\PHPUnit\Controller\AbstractControllerTestCaseTest that isolates the issue
Fixed the bug by using http_build_query instead of the self-written code to generate the Request-Content
Ocramius added a commit that referenced this issue Dec 30, 2014
…t-multidimensional-urlencoded-params' into develop

Close #6636
Close #6637
Forward port #6636
Forward port #6637
@Ocramius
Copy link
Member

Handled in #6637

gianarb pushed a commit to zendframework/zend-test that referenced this issue May 15, 2015
…e fails with multidimensional params array

Added test method testCanHandleMultidimensionalParams to \ZendTest\Test\PHPUnit\Controller\AbstractControllerTestCaseTest that isolates the issue
Fixed the bug by using http_build_query instead of the self-written code to generate the Request-Content
gianarb pushed a commit to zendframework/zend-test that referenced this issue May 15, 2015
…dding `@group` annotations for newly introduced tests
gianarb pushed a commit to zendframework/zend-test that referenced this issue May 15, 2015
gianarb pushed a commit to zendframework/zend-test that referenced this issue May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants