Beispiel #1
0
 public function testGetSetIcon()
 {
     $view = new View();
     $this->assertEquals('', $view->getIcon());
     $view->setIcon('#', 'png');
     $this->assertEquals('<link rel="icon" type="image/png" href="#">', $view->getIcon());
     $view->setIcon('#', 'ico');
     $this->assertEquals('<link rel="shortcut icon" type="image/x-icon" href="#">', $view->getIcon());
     $view->setIcon('#', 'invalid type');
     $this->assertEquals('', $view->getIcon());
 }