Skip to content

Commit

Permalink
test QR resource
Browse files Browse the repository at this point in the history
  • Loading branch information
yakeing authored Aug 27, 2019
1 parent 1f532dd commit 5297117
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/QRCodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ public function testQRCode(){
$margin = 0;
$color = 'Ff0f0F,#000000';
$spec = 10;
$str = QrCode::image($text, $pixel, $icon, $distinguish, $type, $margin, $color, $spec, true);
$str = QrCode::image($text, $pixel, $icon, $distinguish, $type, $margin, $color, $spec, array());
$this->assertTrue(is_array($str));
$text = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$imag = QrCode::image($text, $pixel, false, 'H', 'jpg', 2, array('235,00,100','68,200,90'), $spec, false);
var_dump($str, $imag);
//$this->assertTrue(is_string($imag));
$imag = QrCode::image($text, $pixel, false, 'H', 'jpg', 2, array('235,00,100','68,200,90'), $spec, true);
$this->assertTrue(is_resource($imag));
}
}

0 comments on commit 5297117

Please sign in to comment.