Exemplo n.º 1
0
 public function test_convert_to_class__class()
 {
     $class = \UObject::convertToClass('\\Exception');
     $this->assertEquals('Exception', $class);
 }
Exemplo n.º 2
0
 public static function doConvertToClass(&$mixed)
 {
     $mixed = \UObject::convertToClass($mixed);
 }
Exemplo n.º 3
0
 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 . ' )';
 }