/** * Prepares the environment before running a test. */ protected function setUp() { parent::setUp(); $this->_request = new RequestService(); $this->_client = new Request\Client(); $this->_curlObjectMock = $this->getMock('Paymill\\API\\Curl', array('requestApi'), array("TestToken")); $this->_request->setSource("UNITTEST"); }