Artesaos\SEOTools\TwitterCards::setTitle PHP Method

setTitle() public method

public setTitle ( string $title ) : Artesaos\SEOTools\Contracts\TwitterCards
$title string
return Artesaos\SEOTools\Contracts\TwitterCards
    public function setTitle($title)
    {
        return $this->addValue('title', $title);
    }

Usage Example

Example #1
0
 public function test_set_title()
 {
     $this->twitterCards->setTitle('Kamehamehaaaaaaaa');
     $expected = '<meta name="twitter:title" content="Kamehamehaaaaaaaa" />';
     $this->setRightAssertion($expected);
 }