Example #1
0
 /**
  * Test: Connection - real with success as well as failure.
  *
  * @author Benjamin Carl <*****@*****.**>
  * @return void
  * @access protected
  * @expectedException \Clickalicious\Memcached\Exception
  */
 public function testConnectToAMemcachedDaemon()
 {
     $this->assertTrue(is_resource($this->client->connect($this->host, Client::DEFAULT_PORT)));
     // Now connect to a fake host/port with little timeout - just to get the exception tested
     $this->client->connect('1.2.3.4', '11211', 1);
 }