@@ -33,6 +33,7 @@ class StyleTest extends \PHPUnit\Framework\TestCase
33
33
* @covers ::addParagraphStyle
34
34
* @covers ::addFontStyle
35
35
* @covers ::addLinkStyle
36
+ * @covers ::addNumberingStyle
36
37
* @covers ::addTitleStyle
37
38
* @covers ::addTableStyle
38
39
* @covers ::setDefaultParagraphStyle
@@ -47,19 +48,34 @@ public function testStyles()
47
48
$ paragraph = array ('alignment ' => Jc::CENTER );
48
49
$ font = array ('italic ' => true , '_bold ' => true );
49
50
$ table = array ('bgColor ' => 'CCCCCC ' );
51
+ $ numbering = array (
52
+ 'type ' => 'multilevel ' ,
53
+ 'levels ' => array (
54
+ array (
55
+ 'start ' => 1 ,
56
+ 'format ' => 'decimal ' ,
57
+ 'restart ' => 1 ,
58
+ 'suffix ' => 'space ' ,
59
+ 'text ' => '%1. ' ,
60
+ 'alignment ' => Jc::START ,
61
+ ),
62
+ ),
63
+ );
64
+
50
65
$ styles = array (
51
66
'Paragraph ' => 'Paragraph ' ,
52
67
'Font ' => 'Font ' ,
53
68
'Link ' => 'Font ' ,
54
69
'Table ' => 'Table ' ,
55
70
'Heading_1 ' => 'Font ' ,
56
71
'Normal ' => 'Paragraph ' ,
72
+ 'Numbering ' => 'Numbering ' ,
57
73
);
58
74
59
75
Style::addParagraphStyle ('Paragraph ' , $ paragraph );
60
76
Style::addFontStyle ('Font ' , $ font );
61
77
Style::addLinkStyle ('Link ' , $ font );
62
- // @todo Style::addNumberingStyle
78
+ Style::addNumberingStyle ( ' Numbering ' , $ numbering );
63
79
Style::addTitleStyle (1 , $ font );
64
80
Style::addTableStyle ('Table ' , $ table );
65
81
Style::setDefaultParagraphStyle ($ paragraph );
0 commit comments