Esempio n. 1
0
 function testCurrentURL()
 {
     if (!isset($_SERVER['SERVER_PORT'])) {
         $_SERVER['SERVER_PORT'] = 80;
     }
     if (!isset($_SERVER['SERVER_NAME'])) {
         $_SERVER['SERVER_NAME'] = 'example.org';
     }
     $this->go_to('/');
     $url = TimberURLHelper::get_current_url();
     $this->assertEquals('http://example.org/', $url);
 }
Esempio n. 2
0
 /**
  * @deprecated
  */
 static function get_current_url()
 {
     return TimberURLHelper::get_current_url();
 }