Improved coverage for `\PhpOffice\PhpWord\Element\Section` (#665).
This commit is contained in:
parent
8bc236460a
commit
995dc68706
|
|
@ -20,7 +20,7 @@ namespace PhpOffice\PhpWord\Element;
|
||||||
use PhpOffice\PhpWord\Style\Paragraph;
|
use PhpOffice\PhpWord\Style\Paragraph;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Footnote element
|
* @codeCoverageIgnore
|
||||||
*/
|
*/
|
||||||
class Footnote extends AbstractContainer
|
class Footnote extends AbstractContainer
|
||||||
{
|
{
|
||||||
|
|
@ -58,8 +58,6 @@ class Footnote extends AbstractContainer
|
||||||
* Get paragraph style
|
* Get paragraph style
|
||||||
*
|
*
|
||||||
* @return string|\PhpOffice\PhpWord\Style\Paragraph
|
* @return string|\PhpOffice\PhpWord\Style\Paragraph
|
||||||
*
|
|
||||||
* @codeCoverageIgnore
|
|
||||||
*/
|
*/
|
||||||
public function getParagraphStyle()
|
public function getParagraphStyle()
|
||||||
{
|
{
|
||||||
|
|
@ -72,8 +70,6 @@ class Footnote extends AbstractContainer
|
||||||
* @deprecated 0.10.0
|
* @deprecated 0.10.0
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*
|
|
||||||
* @codeCoverageIgnore
|
|
||||||
*/
|
*/
|
||||||
public function getReferenceId()
|
public function getReferenceId()
|
||||||
{
|
{
|
||||||
|
|
@ -86,8 +82,6 @@ class Footnote extends AbstractContainer
|
||||||
* @deprecated 0.10.0
|
* @deprecated 0.10.0
|
||||||
*
|
*
|
||||||
* @param int $rId
|
* @param int $rId
|
||||||
*
|
|
||||||
* @codeCoverageIgnore
|
|
||||||
*/
|
*/
|
||||||
public function setReferenceId($rId)
|
public function setReferenceId($rId)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -21,23 +21,16 @@ use PhpOffice\PhpWord\SimpleType\Jc;
|
||||||
use PhpOffice\PhpWord\TestHelperDOCX;
|
use PhpOffice\PhpWord\TestHelperDOCX;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for PhpOffice\PhpWord\Writer\Word2007\Part\Notes
|
* @coversNothing
|
||||||
*
|
|
||||||
* @runTestsInSeparateProcesses
|
* @runTestsInSeparateProcesses
|
||||||
*/
|
*/
|
||||||
class FootnotesTest extends \PHPUnit_Framework_TestCase
|
class FootnotesTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* Executed before each method of the class
|
|
||||||
*/
|
|
||||||
public function tearDown()
|
public function tearDown()
|
||||||
{
|
{
|
||||||
TestHelperDOCX::clear();
|
TestHelperDOCX::clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Write footnotes
|
|
||||||
*/
|
|
||||||
public function testWriteFootnotes()
|
public function testWriteFootnotes()
|
||||||
{
|
{
|
||||||
$phpWord = new PhpWord();
|
$phpWord = new PhpWord();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue