/** * Testing Utilities::extractBasePath() * * @return null */ public function testExtractBasePath() { $oUtils = new Utilities(); $this->assertEquals("nothing", $oUtils->extractRewriteBase("nothing")); $this->assertEquals("/folder", $oUtils->extractRewriteBase("http://www.shop.com/folder/")); $this->assertEquals("www.shop.com/folder", $oUtils->extractRewriteBase("www.shop.com/folder/")); $this->assertEquals("/folder", $oUtils->extractRewriteBase("http://www.shop.com/folder")); $this->assertEquals("/folder", $oUtils->extractRewriteBase("http://shop.com/folder")); }