◆ testReplace()
ilCertificateValueReplacementTest::testReplace |
( |
| ) |
|
Definition at line 9 of file ilCertificateValueReplacementTest.php.
13 $placeholderValues = array(
'NAME' =>
'Peter',
'PRIZE' =>
'a fantastic prize');
15 $certificateContent =
'<xml> 17 Hurray [NAME] you have received [PRIZE] 20 $replacedContent = $replacement->replace($placeholderValues, $certificateContent);
24 Hurray Peter you have received a fantastic prize 27 $this->assertEquals($expected, $replacedContent);
◆ testReplaceClientWebDir()
ilCertificateValueReplacementTest::testReplaceClientWebDir |
( |
| ) |
|
Definition at line 30 of file ilCertificateValueReplacementTest.php.
34 $placeholderValues = array(
'NAME' =>
'Peter',
'PRIZE' =>
'a fantastic prize');
36 $certificateContent =
'<xml> 38 [CLIENT_WEB_DIR]/background.jpg 39 Hurray [NAME] you have received [PRIZE] 42 $replacedContent = $replacement->replace($placeholderValues, $certificateContent);
46 [CLIENT_WEB_DIR]/background.jpg 47 Hurray Peter you have received a fantastic prize 50 $this->assertEquals($expected, $replacedContent);
The documentation for this class was generated from the following file: