You are here

public function MemcacheMock::pconnect in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/Profiler/Mock/MemcacheMock.php \Symfony\Component\HttpKernel\Tests\Profiler\Mock\MemcacheMock::pconnect()

Open memcached server persistent connection.

Parameters

string $host:

int $port:

int $timeout:

Return value

bool

File

vendor/symfony/http-kernel/Tests/Profiler/Mock/MemcacheMock.php, line 53

Class

MemcacheMock
MemcacheMock for simulating Memcache extension in tests.

Namespace

Symfony\Component\HttpKernel\Tests\Profiler\Mock

Code

public function pconnect($host, $port = null, $timeout = null) {
  if ('127.0.0.1' == $host && 11211 == $port) {
    $this->connected = true;
    return true;
  }
  return false;
}