Sphinx\Tests\SphinxClientTest::testSetServerWithAddressShouldSetHostAndPort PHP Метод

testSetServerWithAddressShouldSetHostAndPort() публичный Метод

    public function testSetServerWithAddressShouldSetHostAndPort()
    {
        $sphinx = new SphinxClient();
        $sphinx->setServer('localhost', 3312);
        $this->assertSame($sphinx->host, 'localhost');
        $this->assertSame($sphinx->port, 3312);
    }
SphinxClientTest