function testStartValues() {
     $tag = new SimpleTitleTag(array("a" => "1", "b" => ""));
     $this->assertEqual($tag->getTagName(), "title");
     $this->assertIdentical($tag->getAttribute("a"), "1");
     $this->assertIdentical($tag->getAttribute("b"), true);
     $this->assertIdentical($tag->getAttribute("c"), false);
     $this->assertIdentical($tag->getContent(), "");
 }
Exemple #2
0
 public function testStartValuesWithoutAdditionalContent()
 {
     $tag = new SimpleTitleTag(array('a' => '1', 'b' => ''));
     $this->assertEqual($tag->getTagName(), 'title');
     $this->assertIdentical($tag->getAttribute('a'), '1');
     $this->assertIdentical($tag->getAttribute('b'), '');
     $this->assertIdentical($tag->getAttribute('c'), false);
     $this->assertIdentical($tag->getContent(), '');
 }