예제 #1
0
 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(), "");
 }
예제 #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(), '');
 }