public function moveBack($numberOfSteps = 1)
    {
        if (!is_int($numberOfSteps) || $numberOfSteps < 1) {
            throw new \InvalidArgumentException('numberOfSteps must be positive integer');
        }
        try {
            $history = $this->getRunningClient()->getHistory();
            for ($i = $numberOfSteps; $i > 0; $i--) {
                $request = $history->back();
            }
        } catch (\LogicException $e) {
            throw new \InvalidArgumentException(
                sprintf(
                    'numberOfSteps is set to %d, but there are only %d previous steps in the history',
                    $numberOfSteps,
                    $numberOfSteps - $i
                )
            );
        }
        $this->_loadPage(
            $request->getMethod(),
            $request->getUri(),
            $request->getParameters(),
            $request->getFiles(),
            $request->getServer(),
            $request->getContent()
        );
    }
public function moveBack($numberOfSteps = 1)
    {
        if (!is_int($numberOfSteps) || $numberOfSteps < 1) {
            throw new \InvalidArgumentException('numberOfSteps must be positive integer');
        }
        try {
            $history = $this->getRunningClient()->getHistory();
            for ($i = $numberOfSteps; $i > 0; $i--) {
                $request = $history->back();
            }
        } catch (\LogicException $e) {
            throw new \InvalidArgumentException(
                sprintf(
                    'numberOfSteps is set to %d, but there are only %d previous steps in the history',
                    $numberOfSteps,
                    $numberOfSteps - $i
                )
            );
        }
        $this->_loadPage(
            $request->getMethod(),
            $request->getUri(),
            $request->getParameters(),
            $request->getFiles(),
            $request->getServer(),
            $request->getContent()
        );
    }
public function moveBack ( $ numberOfSteps = 1 ) { if ( ! is_int ( $ numberOfSteps ) || $ numberOfSteps < 1 ) { throw new \ InvalidArgumentException ( 'numberOfSteps must be positive integer' ) ; } try { $ history = $ this -> getRunningClient ( ) -> getHistory ( ) ; for ( $ i = $ numberOfSteps ; $ i > 0 ; $ i -- ) { $ request = $ history -> back ( ) ; } } catch ( \ LogicException $ e ) { throw new \ InvalidArgumentException ( sprintf ( 'numberOfSteps is set to %d, but there are only %d previous steps in the history' , $ numberOfSteps , $ numberOfSteps - $ i ) ) ; } $ this -> _loadPage ( $ request -> getMethod ( ) , $ request -> getUri ( ) , $ request -> getParameters ( ) , $ request -> getFiles ( ) , $ request -> getServer ( ) , $ request -> getContent ( ) ) ; }
Moves back in history.

@param int $numberOfSteps (default value 1)
Moves back in history .