/** * 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')); }
/** * Init instance * * @return Instance */ protected static function initInstance() { $instance = new Instance(); if ($data = Config::getData('registry')) { $instance->setFromArray($data); } return $instance; }