ElasticSearch\tests\units\Client::testDsnIsCorrectlyParsed PHP Method

testDsnIsCorrectlyParsed() public method

    public function testDsnIsCorrectlyParsed()
    {
        $search = \ElasticSearch\Client::connection('http://test.com:9100/index/type');
        $config = array('protocol' => 'http', 'servers' => 'test.com:9100', 'index' => 'index', 'type' => 'type', 'timeout' => null);
        $this->assert->array($search->config())->isEqualTo($config);
    }