コード例 #1
0
 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);
 }
コード例 #2
0
ファイル: PeclHttpTest.php プロジェクト: Bine0511/RDF-Demo
 /**
  * @expectedException Solarium_Client_HttpException
  */
 public function testExecuteWithException()
 {
     $this->_adapter->setPort(-1);
     // this forces an error
     $request = new Solarium_Client_Request();
     $this->_adapter->execute($request);
 }