Exemple #1
0
 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')));
     }
 }
Exemple #2
0
 /**
  * gchart_get_qrcode_url definition
  */
 public function getQrCodeUrl($text, $params = array(), $rawParams = array())
 {
     $chart = new Chart\QrCode();
     return $chart->getUrl($text, $params, $rawParams);
 }