public function test_remove_metatag() { $fullHeader = "<title>It's Over 9000!</title>"; $fullHeader .= "<meta name=\"description\" content=\"For those who helped create the Genki Dama\">"; $this->seoMeta->addMeta('no-content'); $this->seoMeta->addMeta(['custom-meta' => 'value']); $this->seoMeta->addMeta('custom-meta', 'value', 'test'); $fullHeaderWithTags = $fullHeader . "<meta test=\"custom-meta\" content=\"value\">"; $this->setRightAssertion($fullHeaderWithTags); $this->seoMeta->removeMeta('custom-meta'); $this->seoMeta->removeMeta('no-content'); $this->setRightAssertion($fullHeader); $this->assertEquals(count([]), count($this->seoMeta->getMetatags())); }