/** * @testdox getName() returns the tag's name */ public function testGetName() { $tag = new Tag(Tag::START_TAG, 'X', 12, 34); $this->assertSame('X', $tag->getName()); }
public function addCopyTag(Tag $tag, $pos, $len) { $copy = $this->addTag($tag->getType(), $tag->getName(), $pos, $len); $copy->setAttributes($tag->getAttributes()); $copy->setSortPriority($tag->getSortPriority()); return $copy; }