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()); }
/** * Appends removeAces parameters to url * * @param Url $url * @param AclInterface|null $removeAces A list of ACEs */ protected function appendRemoveAcesToUrl(Url $url, AclInterface $removeAces = null) { if ($removeAces !== null) { $url->getQuery()->modify($this->convertAclToQueryArray($removeAces, Constants::CONTROL_REMOVE_ACE_PRINCIPAL, Constants::CONTROL_REMOVE_ACE_PERMISSION)); } }