コード例 #1
0
ファイル: PeclHttpTest.php プロジェクト: lhess/solarium
 /**
  * @expectedException \Solarium\Exception\HttpException
  */
 public function testExecuteWithException()
 {
     $endpoint = new Endpoint();
     $endpoint->setPort(-1);
     // this forces an error
     $request = new Request();
     $this->adapter->execute($request, $endpoint);
 }
コード例 #2
0
ファイル: EndpointTest.php プロジェクト: csemrm/solr-power
 public function testSetAndGetPort()
 {
     $this->endpoint->setPort(8080);
     $this->assertEquals(8080, $this->endpoint->getPort());
 }