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;
 }
Beispiel #2
0
 public function testAPIRequest()
 {
     $httpClient = new Core\HttpClient($this->_configuration);
     $response = $httpClient->testRemote();
     $this->assertEquals(200, $response['httpStatus']);
 }