/** * Gets TTL of the cache. * * Default value is set in the config file. * * @return integer Cache TTL in seconds */ public function getTtl() { if (null === $this->ttl) { $this->ttl = $this->config->get('client.cache.ttl'); } return $this->ttl; }
public function testGet() { $this->assertTrue(is_array($this->config->get('client'))); $this->assertEquals(3600, $this->config->get('client.cache.ttl')); }