Improved coverage for `\PhpOffice\PhpWord\Element\Section` (#665).

This commit is contained in:
Roman Syroeshko 2016-01-23 22:19:06 +04:00
parent 8bc236460a
commit 995dc68706
2 changed files with 2 additions and 15 deletions

View File

@ -20,7 +20,7 @@ namespace PhpOffice\PhpWord\Element;
use PhpOffice\PhpWord\Style\Paragraph;
/**
* Footnote element
* @codeCoverageIgnore
*/
class Footnote extends AbstractContainer
{
@ -58,8 +58,6 @@ class Footnote extends AbstractContainer
* Get paragraph style
*
* @return string|\PhpOffice\PhpWord\Style\Paragraph
*
* @codeCoverageIgnore
*/
public function getParagraphStyle()
{
@ -72,8 +70,6 @@ class Footnote extends AbstractContainer
* @deprecated 0.10.0
*
* @return int
*
* @codeCoverageIgnore
*/
public function getReferenceId()
{
@ -86,8 +82,6 @@ class Footnote extends AbstractContainer
* @deprecated 0.10.0
*
* @param int $rId
*
* @codeCoverageIgnore
*/
public function setReferenceId($rId)
{

View File

@ -21,23 +21,16 @@ use PhpOffice\PhpWord\SimpleType\Jc;
use PhpOffice\PhpWord\TestHelperDOCX;
/**
* Test class for PhpOffice\PhpWord\Writer\Word2007\Part\Notes
*
* @coversNothing
* @runTestsInSeparateProcesses
*/
class FootnotesTest extends \PHPUnit_Framework_TestCase
{
/**
* Executed before each method of the class
*/
public function tearDown()
{
TestHelperDOCX::clear();
}
/**
* Write footnotes
*/
public function testWriteFootnotes()
{
$phpWord = new PhpWord();