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