Example #1
0
 public function testGetPath()
 {
     $aUrlComponents = array('scheme' => '', 'host' => '', 'user' => '', 'pass' => '', 'path' => __FILE__, 'query' => array(), 'fragment' => '');
     $sUrl = UrlParserA_underTest::makeUrl($aUrlComponents);
     $oUrl = new UrlParserA_underTest($sUrl);
     $this->assertEquals(__FILE__, $oUrl->getPath());
 }
Example #2
0
 public function testSetRealPath()
 {
     $o = new UrlParserA_underTest();
     $o->setPath(__FILE__);
     $this->assertEquals(__FILE__, $o->getPath());
 }