setTitle() public method

Sets the title.
public setTitle ( string $title, boolean $appendDefault = true ) : Artesaos\SEOTools\Contracts\MetaTags
$title string
$appendDefault boolean
return Artesaos\SEOTools\Contracts\MetaTags
コード例 #1
0
ファイル: SEOMetaTest.php プロジェクト: artesaos/seotools
 public function test_set_title_sepatator()
 {
     $fullHeader = "<title>Kamehamehaaaaaaaa | It's Over 9000!</title>";
     $fullHeader .= "<meta name=\"description\" content=\"For those who helped create the Genki Dama\">";
     $separator = ' | ';
     $fullTitle = 'Kamehamehaaaaaaaa';
     $this->seoMeta->setTitleSeparator($separator);
     $this->seoMeta->setTitle($fullTitle);
     $this->setRightAssertion($fullHeader);
     $this->assertEquals($separator, $this->seoMeta->getTitleSeparator());
 }