/** * @testdox $endTag->pairWith($startTag) sets $endTag->startTag if $endTag's position is greater than $startTag's */ public function testReversePairWithGetStartTag() { $startTag = new Tag(Tag::START_TAG, 'X', 0, 0); $endTag = new Tag(Tag::END_TAG, 'X', 1, 0); $endTag->pairWith($startTag); $this->assertSame($startTag, $endTag->getStartTag()); }