Ejemplo n.º 1
0
 public static final function getInstance(array $config)
 {
     if (static::$uniqueInstance == null) {
         static::$uniqueInstance = new static();
     }
     static::$uniqueInstance->setConfig($config);
     return static::$uniqueInstance;
 }
Ejemplo n.º 2
0
 /**
  * @dataProvider provider
  * @param $key
  */
 public function testExistsAndDelete($key)
 {
     $this->assertTrue($this->handler->exists($key));
     $this->assertTrue($this->handler->delete($key));
     $this->assertFalse($this->handler->exists($key));
 }