Example #1
0
 /**
  * Complex test for delete registry key
  */
 public function testRemove()
 {
     $this->registry->set('moo', 'maz');
     $this->registry->delete('moo');
     $this->assertNull($this->registry->get('moo'));
     $this->assertFalse($this->registry->contains('moo'));
 }
Example #2
0
 /**
  * Init instance
  *
  * @return Instance
  */
 protected static function initInstance()
 {
     $instance = new Instance();
     if ($data = Config::getData('registry')) {
         $instance->setFromArray($data);
     }
     return $instance;
 }