public function testDefaults() { $client = new Elastica_Client(); $this->assertEquals(Elastica_Client::DEFAULT_HOST, 'localhost'); $this->assertEquals(Elastica_Client::DEFAULT_PORT, 9200); $this->assertEquals(Elastica_Client::DEFAULT_TRANSPORT, 'Http'); $this->assertEquals(Elastica_Client::DEFAULT_HOST, $client->getHost()); $this->assertEquals(Elastica_Client::DEFAULT_PORT, $client->getPort()); $this->assertEquals(Elastica_Client::DEFAULT_TRANSPORT, $client->getTransport()); }