38 lines
1.1 KiB
PHP
38 lines
1.1 KiB
PHP
<?php
|
|
namespace PHPWord\Tests;
|
|
|
|
use PHPUnit_Framework_TestCase;
|
|
use PHPWord_Section;
|
|
|
|
class SectionTest extends \PHPUnit_Framework_TestCase
|
|
{
|
|
public function testGetSettings()
|
|
{
|
|
$oSection = new PHPWord_Section(0);
|
|
$this->assertAttributeEquals($oSection->getSettings(), '_settings', new PHPWord_Section(0));
|
|
}
|
|
|
|
public function testGetElementss()
|
|
{
|
|
$oSection = new PHPWord_Section(0);
|
|
$this->assertAttributeEquals($oSection->getElements(), '_elementCollection', new PHPWord_Section(0));
|
|
}
|
|
|
|
public function testGetFooter()
|
|
{
|
|
$oSection = new PHPWord_Section(0);
|
|
$this->assertAttributeEquals($oSection->getFooter(), '_footer', new PHPWord_Section(0));
|
|
}
|
|
|
|
public function testGetHeaders()
|
|
{
|
|
$oSection = new PHPWord_Section(0);
|
|
$this->assertAttributeEquals($oSection->getHeaders(), '_headers', new PHPWord_Section(0));
|
|
}
|
|
|
|
public function testGetElements()
|
|
{
|
|
$oSection = new PHPWord_Section(0);
|
|
$this->assertAttributeEquals($oSection->getElements(), '_elementCollection', new PHPWord_Section(0));
|
|
}
|
|
} |