Ejemplo n.º 1
0
 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());
 }
Ejemplo n.º 2
0
 public function testRender()
 {
     $attributes = array('name' => 'test', 'content' => 'woooo');
     $meta = new Meta($attributes);
     $this->assertEquals('<meta name="test" content="woooo" />', $meta->render());
 }