getBasePath() is only in the ```PhpEnvironment/Request``` interface.

ZF doesn't test for an interface : 
```
        if ($this->baseUrl === null && method_exists($request, 'getBaseUrl')) {
            $this->setBaseUrl($request->getBaseUrl());
        }
```

I don't like much ```method_exists``` but if it can spare a dependency...