PHPIDS
Current file: /home/mario/workspace/php-ids.org/trunk/lib/IDS/vendors/htmlpurifier/HTMLPurifier/AttrTransform/ScriptRequired.php
Legend: executed not executed dead code

  Coverage
  Classes Methods Lines
Total
100.00 %100.00%
100.00% 1 / 1
0.00 %0.00%
0.00% 0 / 1
20.00 %20.00%
20.00% 1 / 5
 
HTMLPurifier_AttrTransform_ScriptRequired
100.00 %100.00%
100.00% 1 / 1
0.00 %0.00%
0.00% 0 / 1
20.00 %20.00%
20.00% 1 / 5
 public function transform($attr, $config, $context)
0.00 %0.00%
0.00% 0 / 1
0.00 %0.00%
0.00% 0 / 4


       1                 : <?php                                                                             
       2                 :                                                                                   
       3                 : /**                                                                               
       4                 :  * Implements required attribute stipulation for <script>                         
       5                 :  */                                                                               
       6               1 : class HTMLPurifier_AttrTransform_ScriptRequired extends HTMLPurifier_AttrTransform
       7                 : {                                                                                 
       8                 :     public function transform($attr, $config, $context) {                         
       9               0 :         if (!isset($attr['type'])) {                                              
      10               0 :             $attr['type'] = 'text/javascript';                                    
      11               0 :         }                                                                         
      12               0 :         return $attr;                                                             
      13                 :     }                                                                             
      14                 : }                                                                                 

Generated by PHPUnit 3.2.20 and Xdebug 2.0.3 at Sat Jun 7 16:15:42 CEST 2008.