Example #1
0
 /**
  * {@inheritDoc}
  * @see \Ignaszak\Registry\IRegistry::remove($name)
  */
 public function remove(string $name) : IRegistry
 {
     $tmpFile = Conf::getTmpPath() . "/IgnaszakRegistry_{$name}.tmp";
     if (file_exists($tmpFile)) {
         unlink($tmpFile);
     }
     return parent::remove($name);
 }
Example #2
0
 public function testHas()
 {
     $this->assertFalse($this->IRegistry->has('test'));
     $this->IRegistry->set('test', 'string');
     $this->assertTrue($this->IRegistry->has('test'));
 }