public function testSendException() { $this->setExpectedException('Pop\\Payment\\Adapter\\Exception'); $p = new Payment(new Authorize('API_LOGIN_ID', 'TRANS_KEY', Payment::TEST)); $p->send(); }