Example #1
0
 public function testFactory()
 {
     $client = TelnetClient::factory();
     $this->assertInstanceOf(TelnetClient::class, $client);
 }
 /**
  * @return Dynamark3Client
  */
 public static function factory()
 {
     return new static(TelnetClient::factory(), new CommandResolver());
 }
 /**
  * @return TelnetClient
  */
 protected function getMemcacheTelnetClient()
 {
     $serverList = [];
     $serverOpts = array_values($this->serverCollection)[mt_rand(0, count($this->serverCollection) - 1)];
     $this->normalizeServer($serverList, 'rand', $serverOpts);
     return TelnetClient::build($serverList['rand'][0] . ':' . $serverList['rand'][1], '');
 }