public function testUseProxyPassesThroughToConnection() { $this->connection->expects($this->once())->method('useProxy')->with('127.0.0.1', 6559); Client::useProxy('127.0.0.1', 6559); }