/** * Tests the exception trigger in the update request method * @test * @expectedException \Paymill\Services\PaymillException * @expectedExceptionMessage Undefined Error. This should not happen! */ public function updateExceptionTest() { $outputArray = array(); $outputArray['header']['status'] = 500; $this->_getCurlMock($this->_client->getServiceResource() . $this->_client->getId(), $this->_client->parameterize("update"), "PUT", $outputArray); $this->_client = $this->_request->update($this->_client); }