*/ define('__XE__', 1); define('_XE_PATH_', realpath(dirname(__FILE__).'/../')); require _XE_PATH_.'/config/func.inc.php'; class FuncIncTest extends PHPUnit_Framework_TestCase { static public function xssProvider() { return array( // remove iframe array( '
', '
',
'
'
)
);
}
/**
* @dataProvider xssProvider
*/
public function testXSS($source, $expected)
{
$result = removeHackTag($source);
$this->assertEquals($result, $expected);
}
}