PHPIDS | ||||
![]() | ||||
|
||||
![]() |
Coverage | ||||||||||||
Classes | Methods | Lines | ||||||||||
Total |
|
100.00% | 1 / 1 |
|
0.00% | 0 / 2 |
|
33.33% | 1 / 3 | |||
HTMLPurifier_AttrDef_HTML_FrameTarget |
|
100.00% | 1 / 1 |
|
0.00% | 0 / 2 |
|
33.33% | 1 / 3 | |||
public function __construct() |
|
0.00% | 0 / 1 |
|
100.00% | 0 / 0 | ||||||
public function validate($string, $config, $context) |
|
0.00% | 0 / 1 |
|
0.00% | 0 / 2 |
1 : <?php 2 : 3 : /** 4 : * Special-case enum attribute definition that lazy loads allowed frame targets 5 : */ 6 1 : class HTMLPurifier_AttrDef_HTML_FrameTarget extends HTMLPurifier_AttrDef_Enum 7 : { 8 : 9 : public $valid_values = false; // uninitialized value 10 : protected $case_sensitive = false; 11 : 12 : public function __construct() {} 13 : 14 : public function validate($string, $config, $context) { 15 0 : if ($this->valid_values === false) $this->valid_values = $config->get('Attr', 'AllowedFrameTargets'); 16 0 : return parent::validate($string, $config, $context); 17 : } 18 : 19 : } 20 : |
![]() |
Generated by PHPUnit 3.3.1 and Xdebug 2.0.2 at Thu Sep 25 18:42:10 CEST 2008. |