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