/** * Test statistics chart * * @param array $statistics * @param string $result * @param array $settings * @dataProvider statisticsChartProvider */ public function testStatisticsChart(array $statistics, $result, array $settings) { $this->skipUnless(CakePlugin::loaded('GoogleChart'), 'Please install imsamurai/cakephp-google-chart for this test'); $View = new View(); $Helper = new TaskHelper($View, $settings); $this->assertStringMatchesFormat($result, $Helper->statistics($statistics) . $View->fetch('script')); }