2014-02-24 19:17:06 +01:00
|
|
|
<?php
|
|
|
|
|
namespace PHPWord\Tests;
|
|
|
|
|
|
|
|
|
|
use PHPUnit_Framework_TestCase;
|
|
|
|
|
use PHPWord_Section;
|
|
|
|
|
|
2014-03-09 14:18:49 -04:00
|
|
|
class SectionTest extends \PHPUnit_Framework_TestCase
|
2014-03-02 14:40:58 -05:00
|
|
|
{
|
|
|
|
|
public function testGetSettings()
|
|
|
|
|
{
|
|
|
|
|
$oSection = new PHPWord_Section(0);
|
|
|
|
|
$this->assertAttributeEquals($oSection->getSettings(), '_settings', new PHPWord_Section(0));
|
|
|
|
|
}
|
2014-02-24 19:17:06 +01:00
|
|
|
|
2014-03-02 14:40:58 -05:00
|
|
|
public function testGetElementss()
|
|
|
|
|
{
|
|
|
|
|
$oSection = new PHPWord_Section(0);
|
|
|
|
|
$this->assertAttributeEquals($oSection->getElements(), '_elementCollection', new PHPWord_Section(0));
|
|
|
|
|
}
|
2014-02-24 19:17:06 +01:00
|
|
|
|
2014-03-02 14:40:58 -05:00
|
|
|
public function testGetFooter()
|
|
|
|
|
{
|
|
|
|
|
$oSection = new PHPWord_Section(0);
|
|
|
|
|
$this->assertAttributeEquals($oSection->getFooter(), '_footer', new PHPWord_Section(0));
|
|
|
|
|
}
|
2014-02-24 19:17:06 +01:00
|
|
|
|
2014-03-02 14:40:58 -05:00
|
|
|
public function testGetHeaders()
|
|
|
|
|
{
|
|
|
|
|
$oSection = new PHPWord_Section(0);
|
|
|
|
|
$this->assertAttributeEquals($oSection->getHeaders(), '_headers', new PHPWord_Section(0));
|
|
|
|
|
}
|
2014-02-24 19:17:06 +01:00
|
|
|
|
2014-03-02 14:40:58 -05:00
|
|
|
public function testGetElements()
|
|
|
|
|
{
|
|
|
|
|
$oSection = new PHPWord_Section(0);
|
|
|
|
|
$this->assertAttributeEquals($oSection->getElements(), '_elementCollection', new PHPWord_Section(0));
|
|
|
|
|
}
|
|
|
|
|
}
|