Exemplo n.º 1
0
 public function testGetSetMeta()
 {
     $view = new View();
     $this->assertEquals('', $view->getMeta());
     $view->setMeta();
     $expected = "<meta name=\"\" content=\"\">";
     $this->assertEquals($expected, $view->getMeta());
     $view->setMeta('charset', 'utf-8');
     $expected = $expected . "\n" . "<meta charset=\"utf-8\">";
     $this->assertEquals($expected, $view->getMeta());
 }