protected function setUp() { $this->_configuration = new Payplug('abc', 'cba', true); Payplug::setDefaultConfiguration($this->_configuration); $this->_requestMock = $this->getMock('\\Payplug\\Core\\IHttpRequest'); Core\HttpClient::$REQUEST_HANDLER = $this->_requestMock; }