Esempio n. 1
0
 /**
  * Tests setScheme().
  */
 public function testSetScheme()
 {
     $url = new Net_URL2('http://www.example.com/');
     $url->setScheme('ftp');
     $this->assertEquals($url->getURL(), 'ftp://www.example.com/');
     $url->setScheme('gopher');
     $this->assertEquals($url->getURL(), 'gopher://www.example.com/');
 }