We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14664d3 commit 76205c6Copy full SHA for 76205c6
tests/PhpWord/Tests/TOCTest.php
@@ -64,15 +64,16 @@ public function testAddAndGetTitle()
64
'Heading 2' => 2,
65
'Heading 3' => 3,
66
);
67
+ $toc = new TOC();
68
69
foreach ($titles as $text => $depth) {
- $response = TOC::addTitle($text, $depth);
70
+ $response = $toc->addTitle($text, $depth);
71
}
72
$this->assertEquals($anchor, $response[0]);
73
$this->assertEquals($bookmark, $response[1]);
74
75
$i = 0;
- $savedTitles = TOC::getTitles();
76
+ $savedTitles = $toc->getTitles();
77
78
$this->assertEquals($text, $savedTitles[$i]['text']);
79
$this->assertEquals($depth, $savedTitles[$i]['depth']);
0 commit comments