Ejemplo n.º 1
0
 public function testSetterAccess()
 {
     $this->assertSame($this->url, $this->url->setScheme('https'));
     $this->assertSame($this->url, $this->url->setUser('login'));
     $this->assertSame($this->url, $this->url->setPass('pass'));
     $this->assertSame($this->url, $this->url->setHost('secure.example.com'));
     $this->assertSame($this->url, $this->url->setPort(443));
     $this->assertSame($this->url, $this->url->setPath('/test/query.php'));
     $this->assertSame($this->url, $this->url->setQuery('?kingkong=toto'));
     $this->assertSame($this->url, $this->url->setFragment('doc3'));
 }