19 declare(strict_types=1);
28 $xlstProcess = $this->getMockBuilder(ilCertificateXlstProcess::class)
34 $formFields = $parser->fetchDefaultFormFields($content);
39 'pagewidth' =>
'21cm',
40 'pageheight' =>
'29.7cm',
41 'margin_body_top' =>
'0cm',
42 'margin_body_right' =>
'2cm',
43 'margin_body_bottom' =>
'0cm',
44 'margin_body_left' =>
'2cm',
45 'certificate_text' =>
'' 53 $xlstProcess = $this->getMockBuilder(ilCertificateXlstProcess::class)
57 ->expects($this->once())
60 $content =
'page-width="210mm" page-height="310mm" <fo:region-body margin="1cm 2cm 3cm 4cm"/>';
63 $formFields = $parser->fetchDefaultFormFields($content);
67 'pageformat' =>
'custom',
68 'pagewidth' =>
'210mm',
69 'pageheight' =>
'310mm',
70 'margin_body_top' =>
'1cm',
71 'margin_body_right' =>
'2cm',
72 'margin_body_bottom' =>
'3cm',
73 'margin_body_left' =>
'4cm',
74 'certificate_text' =>
'' 82 $xlstProcess = $this->getMockBuilder(ilCertificateXlstProcess::class)
86 ->expects($this->once())
89 $content =
'page-width="14.8cm" page-height="21cm" <fo:region-body margin="1cm 2cm 3cm 4cm"/>';
92 $formFields = $parser->fetchDefaultFormFields($content);
97 'pagewidth' =>
'14.8cm',
98 'pageheight' =>
'21cm',
99 'margin_body_top' =>
'1cm',
100 'margin_body_right' =>
'2cm',
101 'margin_body_bottom' =>
'3cm',
102 'margin_body_left' =>
'4cm',
103 'certificate_text' =>
'' 111 $xlstProcess = $this->getMockBuilder(ilCertificateXlstProcess::class)
115 ->expects($this->once())
118 $content =
'page-width="21cm" page-height="14.8cm" <fo:region-body margin="1cm 2cm 3cm 4cm"/>';
121 $formFields = $parser->fetchDefaultFormFields($content);
125 'pageformat' =>
'a5landscape',
126 'pagewidth' =>
'21cm',
127 'pageheight' =>
'14.8cm',
128 'margin_body_top' =>
'1cm',
129 'margin_body_right' =>
'2cm',
130 'margin_body_bottom' =>
'3cm',
131 'margin_body_left' =>
'4cm',
132 'certificate_text' =>
'' 140 $xlstProcess = $this->getMockBuilder(ilCertificateXlstProcess::class)
144 ->expects($this->once())
147 $content =
'page-width="29.7cm" page-height="21cm" <fo:region-body margin="1cm 2cm 3cm 4cm"/>';
150 $formFields = $parser->fetchDefaultFormFields($content);
154 'pageformat' =>
'a4landscape',
155 'pagewidth' =>
'29.7cm',
156 'pageheight' =>
'21cm',
157 'margin_body_top' =>
'1cm',
158 'margin_body_right' =>
'2cm',
159 'margin_body_bottom' =>
'3cm',
160 'margin_body_left' =>
'4cm',
161 'certificate_text' =>
'' 169 $xlstProcess = $this->getMockBuilder(ilCertificateXlstProcess::class)
173 ->expects($this->once())
176 $content =
'page-width="11in" page-height="8.5in" <fo:region-body margin="1cm 2cm 3cm 4cm"/>';
179 $formFields = $parser->fetchDefaultFormFields($content);
183 'pageformat' =>
'letterlandscape',
184 'pagewidth' =>
'11in',
185 'pageheight' =>
'8.5in',
186 'margin_body_top' =>
'1cm',
187 'margin_body_right' =>
'2cm',
188 'margin_body_bottom' =>
'3cm',
189 'margin_body_left' =>
'4cm',
190 'certificate_text' =>
'' 198 $xlstProcess = $this->getMockBuilder(ilCertificateXlstProcess::class)
202 ->expects($this->once())
205 $content =
'page-width="8.5in" page-height="11in" <fo:region-body margin="1cm 2cm 3cm 4cm"/>';
208 $formFields = $parser->fetchDefaultFormFields($content);
212 'pageformat' =>
'letter',
213 'pagewidth' =>
'8.5in',
214 'pageheight' =>
'11in',
215 'margin_body_top' =>
'1cm',
216 'margin_body_right' =>
'2cm',
217 'margin_body_bottom' =>
'3cm',
218 'margin_body_left' =>
'4cm',
219 'certificate_text' =>
''
Class ilCertificateBaseTestCase.