Exemple #1
0
 public function testAnchorHref()
 {
     $tag = new SimpleAnchorTag(array('href' => 'http://here/'));
     $this->assertEqual($tag->getHref(), 'http://here/');
     $tag = new SimpleAnchorTag(array('href' => ''));
     $this->assertIdentical($tag->getAttribute('href'), '');
     $this->assertIdentical($tag->getHref(), '');
     $tag = new SimpleAnchorTag(array());
     $this->assertIdentical($tag->getAttribute('href'), false);
     $this->assertIdentical($tag->getHref(), '');
 }