/** * Test method: renderMeta(). */ public function testRenderMeta() { $this->assertEquals('', $this->seoEngine->renderMeta()); $this->seoPage->addMeta('name', 'description', 'Silvestra description.'); $metaDescription = "<meta name=\"description\" content=\"Silvestra description.\">\n"; $this->assertEquals($metaDescription, $this->seoEngine->renderMeta()); $this->seoPage->addMeta('name', 'keywords', 'Silvestra, SEO'); $metaKeywords = "<meta name=\"keywords\" content=\"Silvestra, SEO\">\n"; $this->assertEquals($metaDescription . $metaKeywords, $this->seoEngine->renderMeta()); $this->seoPage->addMeta('charset', 'UTF-8', ''); $this->assertEquals($metaDescription . $metaKeywords . "<meta charset=\"UTF-8\">\n", $this->seoEngine->renderMeta()); }