Amp\Artax\Uri::getFragment PHP Method

getFragment() public method

public getFragment ( ) : string
return string
    public function getFragment()
    {
        return $this->fragment;
    }

Usage Example

Esempio n. 1
0
 /**
  * @dataProvider provideUris
  */
 public function testUri($rawUri, $expectedVals)
 {
     $uri = new Uri($rawUri);
     $this->assertEquals($expectedVals['scheme'], $uri->getScheme());
     $this->assertEquals($expectedVals['host'], $uri->getHost());
     $this->assertEquals($expectedVals['user'], $uri->getUser());
     $this->assertEquals($expectedVals['pass'], $uri->getPass());
     $this->assertEquals($expectedVals['port'], $uri->getPort());
     $this->assertEquals($expectedVals['path'], $uri->getPath());
     $this->assertEquals($expectedVals['query'], $uri->getQuery());
     $this->assertEquals($expectedVals['fragment'], $uri->getFragment());
 }