public function testCheck() { $data = 'data'; $headers = array('X-dummy: data'); // this should be ok, no exception $this->_adapter->check($data, $headers); $data = ''; $headers = array(); $this->setExpectedException('Solarium_Exception'); $this->_adapter->check($data, $headers); }
/** * @expectedException Solarium_Client_HttpException */ public function testExecuteWithException() { $this->_adapter->setPort(-1); // this forces an error $request = new Solarium_Client_Request(); $this->_adapter->execute($request); }