/** * 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())); }
/** * Transforms a namespace to an object * * @param string $class The class of object. * * @return object An an object holding the namespace data * * @since 2.0 */ public function toObject($class = '\\stdClass') { return RegistryHelper::toObject($this->data, $class); }