public function runAction()
    {
        $request = $this->getRequest();
        /* @var $request \Zend\Console\Request */

        $serviceParameters = array();

        foreach ($this->paramsToTest as $params) {
            foreach ($params as $param) {
                if ($result = $request->getParam($param)) {
                    $serviceParameters[$params[0]] = $result;
                    continue;
                }
            }
        }

        $runner = $this->runner;
        $runner->setParams($serviceParameters);
        $output = $runner->run();

        $response = $this->getResponse();
        /* @var $response \Zend\Console\Response */
        $response->setContent($output);
        $response->setErrorLevel($runner->getExitCode());
        return $response;
    }
public function runAction()
    {
        $request = $this->getRequest();
        /* @var $request \Zend\Console\Request */

        $serviceParameters = array();

        foreach ($this->paramsToTest as $params) {
            foreach ($params as $param) {
                if ($result = $request->getParam($param)) {
                    $serviceParameters[$params[0]] = $result;
                    continue;
                }
            }
        }

        $runner = $this->runner;
        $runner->setParams($serviceParameters);
        $output = $runner->run();

        $response = $this->getResponse();
        /* @var $response \Zend\Console\Response */
        $response->setContent($output);
        $response->setErrorLevel($runner->getExitCode());
        return $response;
    }
public function runAction ( ) { $ request = $ this -> getRequest ( ) ; /* @var $request \Zend\Console\Request */ $ serviceParameters = array ( ) ; foreach ( $ this -> paramsToTest as $ params ) { foreach ( $ params as $ param ) { if ( $ result = $ request -> getParam ( $ param ) ) { $ serviceParameters [ $ params [ 0 ] ] = $ result ; continue ; } } } $ runner = $ this -> runner ; $ runner -> setParams ( $ serviceParameters ) ; $ output = $ runner -> run ( ) ; $ response = $ this -> getResponse ( ) ; /* @var $response \Zend\Console\Response */ $ response -> setContent ( $ output ) ; $ response -> setErrorLevel ( $ runner -> getExitCode ( ) ) ; return $ response ; }
Runs all tests and sets the exit code

@return \Zend\Console\Response|\Zend\Stdlib\ResponseInterface
Runs all tests and sets the exit code