Skip to content

Commit 995dc68

Browse files
author
Roman Syroeshko
committed
Improved coverage for \PhpOffice\PhpWord\Element\Section (#665).
1 parent 8bc2364 commit 995dc68

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

src/PhpWord/Element/Footnote.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use PhpOffice\PhpWord\Style\Paragraph;
2121

2222
/**
23-
* Footnote element
23+
* @codeCoverageIgnore
2424
*/
2525
class Footnote extends AbstractContainer
2626
{
@@ -58,8 +58,6 @@ public function __construct($paragraphStyle = null)
5858
* Get paragraph style
5959
*
6060
* @return string|\PhpOffice\PhpWord\Style\Paragraph
61-
*
62-
* @codeCoverageIgnore
6361
*/
6462
public function getParagraphStyle()
6563
{
@@ -72,8 +70,6 @@ public function getParagraphStyle()
7270
* @deprecated 0.10.0
7371
*
7472
* @return int
75-
*
76-
* @codeCoverageIgnore
7773
*/
7874
public function getReferenceId()
7975
{
@@ -86,8 +82,6 @@ public function getReferenceId()
8682
* @deprecated 0.10.0
8783
*
8884
* @param int $rId
89-
*
90-
* @codeCoverageIgnore
9185
*/
9286
public function setReferenceId($rId)
9387
{

tests/PhpWord/Writer/Word2007/Part/FootnotesTest.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,16 @@
2121
use PhpOffice\PhpWord\TestHelperDOCX;
2222

2323
/**
24-
* Test class for PhpOffice\PhpWord\Writer\Word2007\Part\Notes
25-
*
24+
* @coversNothing
2625
* @runTestsInSeparateProcesses
2726
*/
2827
class FootnotesTest extends \PHPUnit_Framework_TestCase
2928
{
30-
/**
31-
* Executed before each method of the class
32-
*/
3329
public function tearDown()
3430
{
3531
TestHelperDOCX::clear();
3632
}
3733

38-
/**
39-
* Write footnotes
40-
*/
4134
public function testWriteFootnotes()
4235
{
4336
$phpWord = new PhpWord();

0 commit comments

Comments
 (0)