예제 #1
0
 public function testGetterAccess()
 {
     $this->assertInstanceof('League\Url\Components\Scheme', $this->url->getScheme());
     $this->assertInstanceof('League\Url\Components\User', $this->url->getUser());
     $this->assertInstanceof('League\Url\Components\Pass', $this->url->getPass());
     $this->assertInstanceof('League\Url\Components\Host', $this->url->getHost());
     $this->assertInstanceof('League\Url\Components\Port', $this->url->getPort());
     $this->assertInstanceof('League\Url\Components\Path', $this->url->getPath());
     $this->assertInstanceof('League\Url\Components\Query', $this->url->getQuery());
     $this->assertInstanceof('League\Url\Components\Fragment', $this->url->getFragment());
 }