コード例 #1
0
ファイル: TagTest.php プロジェクト: CryptArc/TextFormatter
 /**
  * @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());
 }