Skip to content
Snippets Groups Projects
Commit d8da79ca authored by Bernhard Posselt's avatar Bernhard Posselt
Browse files

add test for not failing when adding more comments after type parameters, do...

add test for not failing when adding more comments after type parameters, do not limit x-www-form-urlencoded to POST
parent 4dca2038
No related branches found
No related tags found
No related merge requests found
...@@ -137,11 +137,8 @@ class Dispatcher { ...@@ -137,11 +137,8 @@ class Dispatcher {
$value === 'false' && $value === 'false' &&
( (
$this->request->method === 'GET' || $this->request->method === 'GET' ||
( strpos($this->request->getHeader('Content-Type'),
$this->request->method === 'POST' && 'application/x-www-form-urlencoded') !== false)
strpos($this->request->getHeader('Content-Type'),
'application/x-www-form-urlencoded') !== false
)
) )
) { ) {
$value = false; $value = false;
......
...@@ -319,7 +319,7 @@ class DispatcherTest extends \PHPUnit_Framework_TestCase { ...@@ -319,7 +319,7 @@ class DispatcherTest extends \PHPUnit_Framework_TestCase {
'HTTP_ACCEPT' => 'application/text, test', 'HTTP_ACCEPT' => 'application/text, test',
'HTTP_CONTENT_TYPE' => 'application/x-www-form-urlencoded' 'HTTP_CONTENT_TYPE' => 'application/x-www-form-urlencoded'
), ),
'method' => 'POST' 'method' => 'PUT'
)); ));
$this->dispatcher = new Dispatcher( $this->dispatcher = new Dispatcher(
$this->http, $this->middlewareDispatcher, $this->reflector, $this->http, $this->middlewareDispatcher, $this->reflector,
......
...@@ -75,7 +75,7 @@ class ControllerMethodReflectorTest extends \PHPUnit_Framework_TestCase { ...@@ -75,7 +75,7 @@ class ControllerMethodReflectorTest extends \PHPUnit_Framework_TestCase {
/** /**
* @Annotation * @Annotation
* @param double $test * @param double $test something special
*/ */
public function testReadTypeDoubleAnnotations(){ public function testReadTypeDoubleAnnotations(){
$reader = new ControllerMethodReflector(); $reader = new ControllerMethodReflector();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment