public function test_convert_to_class__class() { $class = \UObject::convertToClass('\\Exception'); $this->assertEquals('Exception', $class); }
public static function doConvertToClass(&$mixed) { $mixed = \UObject::convertToClass($mixed); }
public function __toString() { $str = 'Route( ' . $this->uri . ' => '; if (is_array($this->callable)) { $controller = $this->callable[0]; if (\Staq\Util::isStack($controller)) { $str .= \Staq\Util::getStackSubQuery($controller); } else { $str .= \UObject::convertToClass($controller); } $str .= '::' . $this->callable[1]; } else { $str .= 'anonymous'; } return $str . ' )'; }