/** * Transforms a namespace to an object * * @return object An an object holding the namespace data * * @since 1.0 */ public function toObject() { return $this->registry->toObject(); }
/** * Method to test toObject(). * * @return void * * @covers Windwalker\Registry\Registry::toObject */ public function testToObject() { $registry = new Registry($this->getTestData()); $this->assertEquals($registry->toObject(), RegistryHelper::toObject($this->getTestData())); }