Test document.

Section 1Section 1

One

Section 2Section 2

Two

Section 2.1Section 2.1

Two point one

Section 3Section 3

Three

EOF; public const TEST_DOC_WITH_LINKS = <<Test document.

Section 1[edit]

One

Section 2[edit]

Two

Section 2.1

Two point one

Section 3[edit]

Three

EOF; public const TEST_DOC_WITHOUT_LINKS = <<Test document.

Section 1

One

Section 2

Two

Section 2.1

Two point one

Section 3

Three

EOF; public const TEST_TO_DEDUP = <<This is a test document.

EOF; public static function initSections( ParserOutput $po ): void { $po->setTOCData( new TOCData( SectionMetadata::fromLegacy( [ 'index' => "1", 'level' => 1, 'toclevel' => 1, 'number' => "1", 'line' => "Section 1", 'anchor' => "Section_1" ] ), SectionMetadata::fromLegacy( [ 'index' => "2", 'level' => 1, 'toclevel' => 1, 'number' => "2", 'line' => "Section 2", 'anchor' => "Section_2" ] ), SectionMetadata::fromLegacy( [ 'index' => "3", 'level' => 2, 'toclevel' => 2, 'number' => "2.1", 'line' => "Section 2.1", 'anchor' => "Section_2.1" ] ), SectionMetadata::fromLegacy( [ 'index' => "4", 'level' => 1, 'toclevel' => 1, 'number' => "3", 'line' => "Section 3", 'anchor' => "Section_3" ] ), ) ); } }