f90e19c3
Andrea Petta
plugin update
|
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
39
40
41
42
|
<?php
/**
* Test class for PHPRtfLite_Border_Format
*/
class PHPRtfLite_Border_FormatTest extends PHPUnit_Framework_TestCase
{
public function testGetContentWithTypeSingle()
{
$borderFormat = new PHPRtfLite_Border_Format(1, '#888', PHPRtfLite_Border_Format::TYPE_SINGLE);
$colorTable = new PHPRtfLite_DocHead_ColorTable();
$borderFormat->setColorTable($colorTable);
$this->assertEquals('\brdrs\brdrw20\brsp0\brdrcf2' , trim($borderFormat->getContent()));
}
public function testGetContentWithTypeDot()
{
$borderFormat = new PHPRtfLite_Border_Format(1, '#888', PHPRtfLite_Border_Format::TYPE_DOT);
$colorTable = new PHPRtfLite_DocHead_ColorTable();
$borderFormat->setColorTable($colorTable);
$this->assertEquals('\brdrdot\brdrw20\brsp0\brdrcf2' , trim($borderFormat->getContent()));
}
public function testGetContentWithTypeDash()
{
$borderFormat = new PHPRtfLite_Border_Format(1, '#888', PHPRtfLite_Border_Format::TYPE_DASH);
$colorTable = new PHPRtfLite_DocHead_ColorTable();
$borderFormat->setColorTable($colorTable);
$this->assertEquals('\brdrdash\brdrw20\brsp0\brdrcf2' , trim($borderFormat->getContent()));
}
public function testGetContentWithTypeDotDash()
{
$borderFormat = new PHPRtfLite_Border_Format(1, '#888', PHPRtfLite_Border_Format::TYPE_DOTDASH);
$colorTable = new PHPRtfLite_DocHead_ColorTable();
$borderFormat->setColorTable($colorTable);
$this->assertEquals('\brdrdashd\brdrw20\brsp0\brdrcf2' , trim($borderFormat->getContent()));
}
}
|