PHPWord/Tests/PHPWord/Writer/Word2007/FootnotesTest.php
2014-03-14 04:26:50 +07:00

35 lines
805 B
PHP

<?php
namespace PHPWord\Tests\Writer\Word2007;
use PHPWord;
use PHPWord\Tests\TestHelperDOCX;
/**
* Class PHPWord_Writer_Word2007_FootnotesTest
* @package PHPWord\Tests
* @runTestsInSeparateProcesses
*/
class FootnotesTest extends \PHPUnit_Framework_TestCase
{
/**
* Executed before each method of the class
*/
public function tearDown()
{
TestHelperDOCX::clear();
}
public function testWriteFootnotes()
{
$PHPWord = new PHPWord();
$section = $PHPWord->createSection();
$section->addText('Text');
$footnote = $section->createFootnote();
$footnote->addText('Footnote');
$footnote->addLink('http://google.com');
$doc = TestHelperDOCX::getDocument($PHPWord);
$this->assertEquals(1, 1);
}
}