public function generate($minify = false)
{
$this->eachValue($this->values);
$this->eachValue($this->images, 'images');
return $minify ? implode('', $this->html) : implode(PHP_EOL, $this->html);
}
/** * @param $expectedString */ protected function setRightAssertion($expectedString) { $expectedDom = $this->makeDomDocument($expectedString); $actualDom = $this->makeDomDocument($this->twitterCards->generate()); $this->assertEquals($expectedDom->C14N(), $actualDom->C14N()); }