#!/usr/bin/env php loadYaml('getchartstoview', false, 2)->gen(10); su('admin'); $chartTest = new chartZenTest(); r(count($chartTest->getChartsToViewTest(array()))) && p() && e('0'); r($chartTest->getChartsToViewTest(array(array('chartID' => 1, 'groupID' => 5)))) && p('0:id,currentGroup') && e('1,5'); r(count($chartTest->getChartsToViewTest(array(array('chartID' => 1, 'groupID' => 5), array('chartID' => 2, 'groupID' => 6), array('chartID' => 3, 'groupID' => 7))))) && p() && e('3'); r(count($chartTest->getChartsToViewTest(array(array('chartID' => 999, 'groupID' => 5))))) && p() && e('0'); r(count($chartTest->getChartsToViewTest(array(array('chartID' => 1, 'groupID' => 5), array('chartID' => 999, 'groupID' => 6), array('chartID' => 2, 'groupID' => 7))))) && p() && e('2');