<?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());
    }
}