◆ testReplace()
      
        
          | ilCertificateValueReplacementTest::testReplace  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 26 of file ilCertificateValueReplacementTest.php.
   30         $placeholderValues = [
'NAME' => 
'Peter', 
'PRIZE' => 
'a fantastic prize'];
    32         $certificateContent = 
'<xml>     34 Hurray [NAME] you have received [PRIZE]    37         $replacedContent = $replacement->replace($placeholderValues, $certificateContent);
    41 Hurray Peter you have received a fantastic prize    44         $this->assertSame($expected, $replacedContent);
 
 
 
 
◆ testReplaceClientWebDir()
      
        
          | ilCertificateValueReplacementTest::testReplaceClientWebDir  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 47 of file ilCertificateValueReplacementTest.php.
   51         $placeholderValues = [
'NAME' => 
'Peter', 
'PRIZE' => 
'a fantastic prize'];
    53         $certificateContent = 
'<xml>     55 [CLIENT_WEB_DIR]/background.jpg    56 Hurray [NAME] you have received [PRIZE]    59         $replacedContent = $replacement->replace($placeholderValues, $certificateContent);
    63 [CLIENT_WEB_DIR]/background.jpg    64 Hurray Peter you have received a fantastic prize    67         $this->assertSame($expected, $replacedContent);
 
 
 
 
The documentation for this class was generated from the following file: