/** * tests the getLastResponse-function */ public function testGetLastResponse() { $expectedResult = array('error' => 'Token not Found', 'response_code' => '', 'http_status_code' => '404'); $this->_paymentProcessor->setToken('wrongToken'); $this->assertFalse($this->ProcessPayment()); $response = $this->_paymentProcessor->getLastResponse(); $this->assertInternalType('array', $response); $this->assertEquals($expectedResult, $response); }