Example #1
0
 /**
  * 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()));
 }
Example #2
0
 /**
  * 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);
 }