/**
  * Test and makes sure that baseUrl appended with path works
  *
  */
 public function testBaseUrlIsAppendedWithPath()
 {
     $baseUrls = array('' => '/path/bar', '/subdir' => '/subdir/path/bar', '/sub/sub/dir' => '/sub/sub/dir/path/bar');
     foreach ($baseUrls as $baseUrl => $val) {
         Zend_Controller_Front::getInstance()->setBaseUrl($baseUrl);
         $this->assertEquals($val, $this->_helper->baseUrl('/path/bar'));
     }
 }
 public function testGetBaseUrlReturnsBaseUrlWithoutScriptName()
 {
     $_SERVER['SCRIPT_NAME'] = '/foo/bar/bat/mybar/index.php';
     Zend_Controller_Front::getInstance()->setBaseUrl('/mybar/index.php');
     $helper = new Zym_View_Helper_BaseUrl();
     $this->assertEquals('/mybar', $helper->getBaseUrl());
 }