TUri represents a URI. Given a URI http://joe:whatever@example.com:8080/path/to/script.php?param=value#anchor it will be decomposed as follows, - scheme: http - host: example.com - port: 8080 - user: joe - password: whatever - path: /path/to/script.php - query: param=value - fragment: anchor
Since: 3.0
Author: Qiang Xue (qiang.xue@gmail.com)
Inheritance: extends Prado\TComponent
Ejemplo n.º 1
0
 public function testConstruct()
 {
     $url = "http://www.pradoframework.net/";
     $uri = new TUri($url);
     self::assertEquals($url, $uri->getUri());
     // Bad uri test
     $url = "http://www.pradoframework.net:badport/test";
     try {
         $url = new TUri($url);
         self::fail('exception not raised with an invalid URL');
     } catch (TInvalidDataValueException $e) {
     }
 }