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

  Coverage
  Classes Methods Lines
Total
100.00 %100.00%
100.00% 0 / 0
100.00 %100.00%
100.00% 0 / 0
44.44 %44.44%
44.44% 4 / 9
 


       1                 : <?php                                                                                        
       2                 :                                                                                              
       3                 : /**                                                                                          
       4                 :  * @file                                                                                     
       5                 :  * Convenience file that registers autoload handler for HTML Purifier.                       
       6                 :  */                                                                                          
       7                 :                                                                                              
       8               1 : if (function_exists('spl_autoload_register') && function_exists('spl_autoload_unregister')) {
       9                 :     // We need unregister for our pre-registering functionality                              
      10               1 :     HTMLPurifier_Bootstrap::registerAutoload();                                              
      11               1 :     if (function_exists('__autoload')) {                                                     
      12                 :         // Be polite and ensure that userland autoload gets retained                         
      13               0 :         spl_autoload_register('__autoload');                                                 
      14               0 :     }                                                                                        
      15               1 : } elseif (!function_exists('__autoload')) {                                                  
      16               0 :     function __autoload($class) {                                                            
      17               0 :         return HTMLPurifier_Bootstrap::autoload($class);                                     
      18                 :     }                                                                                        
      19               0 : }                                                                                            

Generated by PHPUnit 3.3.1 and Xdebug 2.0.2 at Thu Sep 25 18:42:10 CEST 2008.