public function testGeneral() { $meta = new Meta(); $this->assertEmpty($meta->get('first')); $this->assertNotEmpty($meta->render()); $this->assertNotEmpty($meta->getVars()); $vars = ['test1', 'test2']; $meta->setVars($vars); $this->assertEquals($vars, $meta->getVars()); $this->assertNotEmpty($meta->render()); }
public function testRender() { $attributes = array('name' => 'test', 'content' => 'woooo'); $meta = new Meta($attributes); $this->assertEquals('<meta name="test" content="woooo" />', $meta->render()); }