public function generate($minify = false)
{
$html = $this->metatags()->generate();
$html .= PHP_EOL;
$html .= $this->opengraph()->generate();
$html .= PHP_EOL;
$html .= $this->twitter()->generate();
return $minify ? str_replace(PHP_EOL, '', $html) : $html;
}
/** * @param $expectedString */ protected function setRightAssertion($expectedString) { $expectedDom = $this->makeDomDocument($expectedString); $actualDom = $this->makeDomDocument($this->seoTools->generate()); $this->assertEquals($expectedDom->C14N(), $actualDom->C14N()); }