__toString() public method

Returns a string representation of the url
public __toString ( ) : string
return string
Beispiel #1
0
 public function testNullPortUrlToString()
 {
     $nullPortUrl = new Url(new SchemeName('http'), new StringLiteral('user'), new StringLiteral(''), new Hostname('foo.com'), new NullPortNumber(), new Path('/bar'), new QueryString('?querystring'), new FragmentIdentifier('#fragmentidentifier'));
     $this->assertSame('http://user@foo.com/bar?querystring#fragmentidentifier', $nullPortUrl->__toString());
 }