public function testPageTitleCarrierWithCustomSeperator() { Nimble::set_config('site_title', 'Mysite'); Nimble::set_config('title_seperator', '->'); Nimble::set_title('My Page'); $this->assertEquals('Mysite->My Page', Nimble::get_title()); }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <link rel="Shortcut Icon" href="/public/image/favico.ico" /> <link rel="icon" href="/public/image/favico.ico" type="image/x-icon" /> <link rel="search" type="application/opensearchdescription+xml" href="http://<?php echo DOMAIN; ?> /opensearch.xml" title="Pearfarm" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="google-site-verification" content="griVQ0kTz8ri_7TzrEN8bOALKwWT8g2fgbow_3GsDQM" /> <meta name="description" content="Pearfarm is the Php community's pear hosting service. Instantly publish your pear packages and install them. Become a contributor and enhance the site with your own changes." /> <meta name="keywords" content="php pear packages community code repository opensource" /> <title><?php echo h(Nimble::get_title()); ?> </title> <?php echo stylesheet_link_tag('stylesheet.css', 'facebox.css'); ?> <!--[if lt IE 7]> <?php echo javascript_include_tag('pngfix.js'); ?> <![endif]--> <?php echo javascript_include_tag('prototype.js', 'scriptaculous.js', 'facebox.js'); ?> <script type='text/javascript'> Event.observe(window, 'load', function(){