ParFormatTest.php
1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* Test class for PHPRtfLite_ParFormat.
* Generated by PHPUnit on 2010-04-26 at 22:18:06.
*/
class PHPRtfLite_ParFormatTest extends PHPUnit_Framework_TestCase
{
/**
* @var PHPRtfLite_ParFormat
*/
private $_parFormat;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->_parFormat = new PHPRtfLite_ParFormat();
}
/**
* tests getContent().
*/
public function testGetContent()
{
$this->_parFormat->setIndentLeft(5);
$this->_parFormat->setIndentRight(5);
$this->_parFormat->setSpaceBefore(5);
$this->_parFormat->setSpaceAfter(5);
$this->_parFormat->setIndentFirstLine(3);
$this->_parFormat->setSpaceBetweenLines(1.2);
$this->_parFormat->setShading(50);
$this->assertEquals('\ql \fi1701 \li2835 \ri2835 \sb100 \sa100 \sl288 \shading5000 ',
$this->_parFormat->getContent());
}
}