Exemple #1
0
 public function testGetCurrentUrl()
 {
     $_SERVER['HTTP_HOST'] = 'example.com';
     $_SERVER['REQUEST_URI'] = '/fancy_uri';
     $this->assertEquals('http://example.com/fancy_uri', $this->_helper->getCurrentUrl());
 }