Exemplo n.º 1
0
 public function testAddDocumentsEmpty()
 {
     $client = new Elastica_Client();
     try {
         $client->addDocuments(array());
         $this->fail('Should throw exception');
     } catch (Elastica_Exception_Invalid $e) {
         $this->assertTrue(true);
     }
 }