/** * @inheritDoc */ protected function setUp() { parent::setUp(); /* Create the provider instance. */ $options = array(ProviderServiceInterface::PROVIDER_OPT_PREFIX => 'my_prefix', ProviderServiceInterface::PROVIDER_OPT_SEPARATOR => ':'); $this->provider = new MemoryProviderService($options); }
/** * @inheritDoc */ protected function setUp() { parent::setUp(); /* Create the memcached client. */ $this->client = new \Memcached(); $this->client->addServer('127.0.0.1', 11211); /* Flush the server */ $this->client->flush(); /* Create the provider instance. */ $options = array(ProviderServiceInterface::PROVIDER_OPT_PREFIX => 'my_prefix', ProviderServiceInterface::PROVIDER_OPT_SEPARATOR => ':'); $this->provider = new MemcachedProviderService($this->client, $options); }