public function testbuild_report_chart() { $aor_Report = new AOR_Report(); $aor_Report->report_module = 'Accounts'; //execute the method and verify that it returns chart display script. strings returned vary due to included chart id. $expected = '<script src="modules/AOR_Charts/lib/pChart/imagemap.js"></script>'; $result = $aor_Report->build_report_chart(); $this->assertStringStartsWith($expected, $result); }