public function testQrCodeUrlWithRawParams() { $api = new QrCode(); foreach ($this->testStrings as $test) { $this->assertEquals('https://chart.googleapis.com/chart?cht=qr&chs=200x200&chl=' . urlencode($test) . '&chld=L&choe=UTF-8&test=value', $api->getUrl($test, array('width' => 200, 'height' => 200), array('test' => 'value'))); } }
/** * gchart_get_qrcode_url definition */ public function getQrCodeUrl($text, $params = array(), $rawParams = array()) { $chart = new Chart\QrCode(); return $chart->getUrl($text, $params, $rawParams); }