sugarChart = SugarChartFactory::getInstance('Jit', 'Reports');
}
public function tearDown()
{
SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
unset($GLOBALS['current_user']);
}
/**
* @dataProvider _xmlChartNodes
*/
public function testJitCharXMLFormat($dirty, $clean)
{
$this->markTestSkipped("SugarChart does not clean unescaped xml enteties.");
$this->assertEquals($clean, $this->sugarChart->tab($dirty,1) );
}
public function _xmlChartNodes()
{
return array(
array('simple string',"\tsimple string\n"),
array('12345',"\t12345\n"),
array('',"\t\n"),
array('No bad data',"\tNo bad data\n"),
array('5852 string',"\t5852 string\n"),
array('with ampersand &',"\twith ampersand &\n"),
array('with less than <',"\twith less than <\n"),
array('with greater than >',"\twith greater than >\n"),
array('Multiple & < > \'',"\tMultiple & < > '\n"),
);
}
}