Artesaos\SEOTools\SEOMeta::setTitleSeparator PHP Method

setTitleSeparator() public method

Sets the separator for the title tag.
public setTitleSeparator ( string $separator ) : Artesaos\SEOTools\Contracts\MetaTags
$separator string
return Artesaos\SEOTools\Contracts\MetaTags
    public function setTitleSeparator($separator)
    {
        $this->title_separator = $separator;
        return $this;
    }

Usage Example

Beispiel #1
0
 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());
 }