Thanks Thomas.


I'll write the test cases if you want.



Eric.


2013/9/9 Thomas Cantonnet <notifications@github.com>

> In library/Zend/Test/PHPUnit/Controller/AbstractControllerTestCase.php:
>
> > @@ -196,7 +196,7 @@ public function url($url, $method = HttpRequest::METHOD_GET, $params = array())
> >      {
> >          $request = $this->getRequest();
> >          if ($this->useConsoleRequest) {
> > -            preg_match_all('/(--\S+[= ]"\S*\s*\S*")|(--\S+=\S+|--\S+\s\S+|\S+)/', $url, $matches);
> > +            preg_match_all('/(--\w+[= ]"([^"]*)")|(--\S+=\S+|--\S+\s\S+|\S+)/', $url, $matches);
>
> Best I could do was this : (--\w+[= ]?(("(\"|[^"]|)*")|\w+))|\S+
>
> Seems to be matching most cases...
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/zendframework/zf2/pull/5090/files#r6232608>
> .
>